fcorbin
Junior Member
Posts: 4
Registered: 12/30/2009
Member Is Offline
|
| posted on 12/30/2009 at 03:41 PM |
|
|
Slider / hints compatibility issue
Posting this issue in bothe the slider and hints forums...
I have created a page where I intend to use both sliders and hints.
With the sliders only, everything works fine. If I add the declaration of the hint object itself (even if I don't even put in the code to show/hide
the hints), my sliders mis-behave. I click the slider handle, start moving, the cursor changes into the 'no traffic' sign (circle with diagonal
bar). I let go of the mouse button and the slider moves again with the mouse. I click the handle and it stops moving, properly registering the slider
value.
In Firefox, everything with hints and sliders works fine. The problem is happening in IE only (tested with IE6 and IE7 with same problem).
Any ideas how to go around this?
|
|
|
fcorbin
Junior Member
Posts: 4
Registered: 12/30/2009
Member Is Offline
|
| posted on 1/4/2010 at 04:20 PM |
|
|
I finally tracked the issue back to the mouse move event. The slider hooks to it within this if statement:
if (!window.f_savedMouseMove && document.onmousemove != f_sliderMouseMove) {
window.f_savedMouseMove = document.onmousemove;
document.onmousemove = f_sliderMouseMove;
}
The hints on the other hand use this statement:
document.attachEvent('onmousemove',f_onMouseMove);
I just commented out the document.attachEvent in tigra_hints.js and my sliders work fine now. Of course, the hints do not move with the mouse
anymore, but it is minor for me.
If anyone knows how to truly fix the problem (i.e. allow the hints to follow mouse movements), the please post back.
|
|
|