W
W
WolfeWOLF2013-01-16 01:35:29
JavaScript
WolfeWOLF, 2013-01-16 01:35:29

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

7 answer(s)
E
egorinsk, 2013-01-16
@egorinsk

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.

A
Andrey Burov, 2013-01-16
@BuriK666

in Linux, by default, the page does not scroll.

R
rasstroen, 2013-01-16
@rasstroen

will embed flash drive in html with wmode="window" help?

N
Nazar Mokrinsky, 2013-01-16
@nazarpc

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.

P
Pavel Tyslyatsky, 2013-01-16
@tbicr

Try to put event.preventDefault() on the scroll handlers for the container with flash; event.stopPropagation();

W
wkololo_4ever, 2014-06-25
@Alex_LC

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

R
Rsa97, 2014-06-25
@Rsa97

1. Be born
2. Become a person
3. Learn how "personal development" differs from professional development

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question