Answer the question
In order to leave comments, you need to log in
Disable page scrolling when mouse is on flash drive?
Hello.
The flash drive uses scroll as an input method, but the page will scroll. How to avoid it?
Thank you.
Answer the question
In order to leave comments, you need to log in
Attention, the correct answer is: do not use scrolling as an input method, especially do not use scrolling in flash drives, since this all conflicts in different browsers, and flash does not work at all on an iPhone.
I would also like to send curse rays to those smart people who came up with the idea that when you click on a video on YouTube, it takes focus and hotkeys in the browser and scrolling stops working.
Hang a handler on the scroll event, when the event occurs, check the cursor position, and the position + size of the container with the flash drive. If the cursor is over the flash drive, prevent scrolling.
Try to put event.preventDefault() on the scroll handlers for the container with flash; event.stopPropagation();
Andrew Troelsen. Pro C# 5.0 and the .NET 4.5 Framework
Richter J. - CLR via C#. Programming on the Microsoft .NET Framework 4.0 in C#
Some book on HTML + CSS
Devid Flenagan - Javascript A detailed guide to
ASP.NET 4.5 C# 5.0 Adam Freeman (Although it is on web forms, but I like the material that is given there on ASP.NET)
ASP.NET MVC 4 Adam Freeman
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question