ian Posted August 1, 2017 Share Posted August 1, 2017 Can anybody explain me why pointer event (mouse and touch events) does not work in Edge browser ? It Works well with Chrome FireFox Opera! What is difference? Is there any better way to handle (mouse and touch events) in all browser same? You can try and see difference between Edge and Chrome/Fierefox/Opera in this example/game. (here I use hand.min.js) Is there any better alternative of hand.min.js ??? Is there any bug in Edge browser or BabylonJS's hand.js? https://ajna4taiga.tk/PerplexusShadowOpen/PerplexusProd.html Edge problem: When I release any of WSAD key it has longer delay only in Edge (Windows) Browser. Is there any batter way to handle (mouse/touch evnets) with javascript? greetings Ian Quote Link to comment Share on other sites More sharing options...
ian Posted August 1, 2017 Author Share Posted August 1, 2017 By the way, Old Internet Explorer work fine like Chrome,Firefox,Opera. But Edge browser have problems with hand.min.js. Greetings Ian Quote Link to comment Share on other sites More sharing options...
davrous Posted August 1, 2017 Share Posted August 1, 2017 Edge supports pointer events and doesn't need any polyfill. But the issue you're describing doesn't seem linked to pointer events but to keyboard inputs (not handled by pointer events). The bug you're describing has been solved in the latest version of Windows 10: Creators Update. What's your current version of Windows 10? Regarding hand.js, it has been deprecated in favor of jQuery PEP which works almost the same. You just need to set the touch-action="none" HTML property on canvas element. But again your problem is not linked to pointer events anyway. Quote Link to comment Share on other sites More sharing options...
ian Posted August 2, 2017 Author Share Posted August 2, 2017 It is strange/wierd case. I work fine on all browsers-IE,Firefox.Chrome,Opera (same js code). ONLY Edge have problems. I use latest Windows 10 with all updates. Should be better to switch from hand.js to jQuery PEP ?? Greetings Ian Quote Link to comment Share on other sites More sharing options...
davrous Posted August 2, 2017 Share Posted August 2, 2017 Well, as I told you, your issue is not linked to Pointer Events... Please read again my previous answer. Quote Link to comment Share on other sites More sharing options...
ian Posted August 2, 2017 Author Share Posted August 2, 2017 If it works on all browsers except Edge, than I think is someting wrong with Edge or Hand.js. I'll try jQuery PEP to see difference. If it will be same, than I will take/debug my code little bit. Quote Link to comment Share on other sites More sharing options...
davrous Posted August 2, 2017 Share Posted August 2, 2017 Yes, it is something wrong with Edge as I told you! Edge had a bug with keyboard inputs as you've described that was fixed in Windows 10 Creators Update. Pointer Events is aggregating touch, mouse & stylus NOT keyboard inputs. ian and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.