简体   繁体   English

JS事件与手指压力无关

[英]JS event independent of finger pressure

So, basically, I have a JS event which is activated when you arrive at a certain scroll position. 因此,基本上,我有一个JS事件,当您到达某个滚动位置时会激活该事件。

It works well on desktop browser, but not on mobile browser. 它在桌面浏览器上运行良好,但在移动浏览器上却无法运行。 You have to wait for the finger leaving the screen. 您必须等待手指离开屏幕。

Would it be possible to activate the event even if the finger is still scrolling the page ? 即使手指仍在滚动页面,也可以激活事件吗?

I believe that mobile browsers freeze all DOM manipulation and javascript during scrolls. 我相信移动浏览器会在滚动过程中冻结所有DOM操作和JavaScript。 So I'm not sure what you are trying to do is possible. 因此,我不确定您要做什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM