首页 > 其他分享 >控制台警告:[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event

控制台警告:[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event

时间:2024-06-05 12:01:39浏览次数:13  
标签:passive non Added blocking listener event

控制台警告:

[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

[Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

image-20240605113955013

警告原因:

我是用的mongodb驱动版本号是4.4.26,通过 mongod --version 查看。警告信息表示正在使用的mongodb驱动程序版本已经不再支持 useNewUrlParser 和 useUnifiedTopology 选项。这在4.0.0版本之后已经被弃用了。我多此一举加了这两个选项,直接删除重新连接即可解决警告

标签:passive,non,Added,blocking,listener,event
From: https://www.cnblogs.com/sharenotes/p/18232741

相关文章

  • Docker---java.sql.SQLNonTransientConnectionException: Could not create connectio
    文章目录一、问题场景二、问题分析及解决2.1问题分析2.2问题解决2.2.1有改动未重启容器2.2.2数据库配置不对三、结束一、问题场景使用docker容器控制数据库时,启动服务报错:java.sql.SQLNonTransientConnectionException:Couldnotcreateconnectiontodat......
  • Unity 代码动态添加EventTrigger
    publicstaticclassUIUltil{publicstaticvoidRigistEventTrigger(thisUIBehaviour_ui,EventTriggerType_eventTriggerType,Action<PointerEventData>_callback){if(_ui==null){Debug.LogError("invalidU......
  • 【OpenCV函数详解之cv2.calcOpticalFlowPyrLK(old_gray, frame_gray, p0, None, **lk_
    文章目录cv2.calcOpticalFlowPyrLK()函数介绍:函数定义:参数说明:返回值示例代码执行结果:**总结:**p1,st,err=cv2.calcOpticalFlowPyrLK(old_gray,frame_gray,p0,None,**lk_params)解释:函数:参数:返回值:使用:cv2.calcOpticalFlowPyrLK()函数介绍:cv2.calcOpti......
  • error:connot bind non-const lvalue reference of type ‘std::__cxx11::string& {ak
    实习记录犯错日志:std::stringutf8_str=gbk_to_utf8((char*)struCIDAlarmInfo.sCIDCode);代码这样写则报如题所示的错误,error:connotbindnon-constlvaluereferenceoftype'std::__cxx11::string&{akastd::cxx11::basic_string<char>&}toanrvalueoftype'......
  • 信号量(Semaphore),事件Event(了解),队列补充,进程池和线程池(重点),协程理论,Greenlet,Gevent模
    Ⅰ信号量(Semaphore)【一】什么是信号量信号量Semahpore(同线程一样)互斥锁:允许在同一时刻只能有一个线程或进程同资源进行修改信号量:允许指定数量的进程或线程对资源进行修改【二】例子比如厕所有3个坑,那最多只允许3个人上厕所,后面的人只能等里面有人出来了才能再进去......
  • golang中基于kevent的IO多路复用实践
    https://github.com/zongzw-learn/learn-go/tree/master/basics/tcp-pollerkqueue在golang语言下的使用实践将kqueue的操作细节封装在NetPoller接口中,实现KqueuePoller的三个API:Start启动基于kqueue的IO多路复用事件监听Close停止kqueueSetHandler设置可插入式的数据处理......
  • PostgreSQL启动报错“could not map anonymous shared memory: Cannot allocate memor
    PostgreSQL启动报错“couldnotmapanonymoussharedmemory:Cannotallocatememory”基础信息OS版本:RedHatEnterpriseLinuxServerrelease7.9(Maipo)DB版本:16.2pg软件目录:/home/pg16/softpg数据目录:/home/pg16/data端口:5777报错[pg16@test~]$pg_ctlst......
  • uniapp使用EventBus实现页面间数据传递
    前情最近在做小程序项目,选用是当前比较火的uniapp技术栈,经常会遇到页面间消息传递的需求。为什么要这么做?uniapp页面间数据通信方式有很多:通过url传参,状态管理库vuex/pinia,本地存储,事件通道eventChannel,EventBus等,这次的需求是在A面点击一个按钮跳转到B页面拾取一个数据选项再......
  • KeyExpirationEventMessageListener监听器的使用
    KeyExpirationEventMessageListener监听器的使用KeyExpirationEventMessageListener是SpringDataRedis提供的一个类,用于监听Redis中键过期事件。当Redis中的键到达过期时间时,Redis会发出一个过期事件,该类可以用来捕捉和处理这些事件。以下是KeyExpirationEvent......
  • window对象的常见属性、延迟函数、时间循环eventloop
    一、window对象JavaScript中的全局对象,代表浏览器窗口或者浏览器标签页。它具有许多属性和方法,以下是其中一些常见的属性:window.document:表示当前窗口或标签页的文档对象,可以用来操作和访问文档的内容。window.navigator:包含有关浏览器的信息,如浏览器的名称、版本、......