javascript - Remove mouse/cursor design on mobile view
问题描述
I used this library called Magicmouse.js https://github.com/dshongphuc/magic-mouse-js I added the CDN and the code and it worked perfectly. However, when using responsive and mobile view on chrome and browsing on mobile, the point stays on where you tap it.
How can I disable this mouse/cursor design when in responsive and mobile view? Is there some code to add in the script file? This one is what exactly on github
<script type="text/javascript">
options = {
"cursorOuter": "circle-basic",
"hoverEffect": "circle-move",
"hoverItemMove": false,
"defaultCursor": false,
"outerWidth": 30,
"outerHeight": 30
};
magicMouse(options);
</script>
Thanks for any help
解决方案
我是 Magicmouse.js 的维护者,很抱歉来得太晚了,我几个小时前才发现你的问题。多亏了你的问题,我现在发现了 Magicmouse.js 的问题,所以当窗口的大小小于 768 像素(手机和平板电脑)时,我禁用了这些库。我们可以使用其他方式来检测设备是否真正移动,但它可能需要一些其他库来执行此操作,因此它会使我们的库太大。
如果您仍然需要它,请更新新代码。
谢谢 !如果您对 Magicmouse.js 有其他问题,请在 repo 中创建新问题,以便我可以轻松检查。
推荐阅读
- cmake - 我可以将 CMakeLists.txt(s) 放在单独的文件夹中吗?
- dart - 在 Flutter 应用程序中将辅助隔离中的地理定位作为后台任务
- python - 无法通过 JSON 文件中的第一个字典
- javascript - 为什么mysql数据库信息不会传递给express.js函数?
- php - 改造不返回 ETag 和 Last-Modified
- android - 以编程方式设置 TabLayout 项目标题
- python - 在 python 中读取 NetCDF 文件
- maven - Cucumber+Maven+TestNG-->即使在构建成功后,控制台输出也会显示为 TestRun as 0
- python-3.x - 将“预压缩”列表值转换为整数
- mongodb - Mongo-atlas 连接:ReferenceError:未定义客户端