简体   繁体   English

鼠标滚动和其他按钮单击在iPhone上不起作用

[英]Mouse Scrolling and other button clicks is not working on iPhone

I am working with a website which needs fully responsive for the devices. 我正在与一个需要对设备进行全面响应的网站合作。 I am testing it iPhone 5. Mouse wheel scroll and buttons clicks is not working when I am testing with iPhone. 我正在测试iPhone5。使用iPhone测试时,鼠标滚轮滚动和按钮单击不起作用。 But everything is working fine when I am testing with online iPhone simulators. 但是,当我使用在线iPhone模拟器进行测试时,一切工作正常。

NB Actually, I can't post code here. 注意:实际上,我无法在此处发布代码。 Because, I can't guess what is the problem there. 因为,我无法猜测那里存在什么问题。

Your website may be preventing the default action for touch events which would prevent scrolling. 您的网站可能正在阻止触摸事件的默认操作,这会阻止滚动。 Although I can not say more without seeing the actual code, here is a possible solution to your dilemma: How to unbind a listener that is calling event.preventDefault() (using jQuery)? 尽管我看不到实际的代码,但我不能说更多,这是解决您的难题的一种可能的解决方案: 如何取消绑定调用event.preventDefault()的侦听器(使用jQuery)? . Essentially you need to restore the default actions that occur after touching the screen. 本质上,您需要恢复触摸屏幕后发生的默认操作。

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

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