How to handle mouseover and mouseleave events in Windows 8.1 Touchscreen

寵の児 提交于 2019-12-24 10:48:44

问题


In my asp.net project, I have written javascript functions on mouseover and mouseleave/ mouseout events of buttons and some other controls. Previously this website was used on non touchscreen devices. But now when I am trying to access the same website on Windows 8.1 , on Internet Explorer 10/11,the problem is, after touching a screen mouse click event is fired (which is ok in my case)and when I remove finger on screen, mouseleave event is fired (which is problematic e.g. dropdowns are not working properly after mouseleave events fired). This Problem arises only in Internet Explorer 10/11. And the site is working fine with all its functionality on Chrome. Is there any JQuery Plugin or some other solution for this problem? Please reply soon. I need this very urgently.

Thanks in advance.


回答1:


Add aria-haspopup="true" attribute to element triggering dropdown showing/hiding. https://msdn.microsoft.com/en-us/library/ie/jj152135(v=vs.85).aspx



来源:https://stackoverflow.com/questions/27059800/how-to-handle-mouseover-and-mouseleave-events-in-windows-8-1-touchscreen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!