Detect scrollbar position in mousedown event
Posted
#1
(In Topic #1397)
Regular

I need to try and prevent my drag/drop code in a webView from interfering with using the scrollbars in the normal way :!:
At present a combination of mouseDown + scrollbar use is triggering the mouseDrag coding - so I thought maybe in the webView's mouseDown event I could detect the mouse in either of the scrollbar areas and set a flag to prevent the mouseDrag code from proceeding…
Has anyone found a way of calculating if mouse is in the scrollbar 'zone' of any control :?:
(apologies if this has been dealt with before :? )
Thanks in advance.
C.
Posted
Guru

Posted
Guru

Posted
Regular

First time i've seen Style statement used - extremely useful, looks like
Without Bruce's style-test code, any attempt to drag a scrollbar in the webView triggers the mouseDrag code which terminates the scrolling :!:
I've just added a few pixels to the calc to allow for minor straying of the mouse during scrollbar use.
Thanks again - learn something new every day in forum…
C.
1 guest and 0 members have just viewed this.


