Weird WebBrowser behaviour

Hi all,

I am developping a Component Class Library including a WebBrowser component. It loads an HTML page including a lot of JavaScript. This JavaScipt is set to detect when the user presses the mouse, moves it, releases it. (document.onmousedown=...).

But I realised that when the user uses the scrollbars, these events are triggered, which is absolutely not what I want!

Does anyone know a workaround to disable this 'event bubbling' from the .Net scrollbars to the HTML page itself?

Thanks in advance.

[521 byte] By [babacrash] at [2008-1-8]
# 1
The WebBrowser control is a thin wrapper around Internet Explorer. Javascript and IE's DOM and event behavior are not covered by the Windows Forms General forum. You'll need to visit an IE developers newsgroup at www.microsoft.com/communities. Check the "Why was my post moved here" post at the top of this forum for further guidance.
nobugz at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Off-Topic Posts (Do Not Post Here)...