Mouse down, move out of browser bug

2 posts, 0 answers
  1. SteveChadbourne
    SteveChadbourne avatar
    4 posts
    Member since:
    Aug 2007

    Posted 09 Aug 2007 Link to this post


    There appears to be a problem with the slider. To replicate the problem:

    1) Go to any of the slider example pages on your web site
    2) Click on the slider - with the mouse button held down move the pointer outside the browser window
    3) Release the mouse button
    4) Move mouse back into browser window - slider now moves back and forward even though no mouse button is down.

    The same problem happens with the Ajax control toolkit slider.


  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 10 Aug 2007 Link to this post

    Hi SteveChadbourne,
    Actually this behavior can be observed only under IE and it is expected behavior as once the mouse leaves the browser window its events are overwritten and the RadSlider is not informed that you have released the mouse button. We are currently looking for ways to improve that behavior. 

    Actually, you can test this by yourself by using a simple DIV element - you will get the same behavior:
    <html xmlns="">  
    <head runat="server">  
        <title>Untitled Page</title> 
        <style type="text/css">  
        html, body, form  
    <body onmousemove="MoveDiv(); return false;" > 
        <script type="text/javascript">  
        var div = null;  
        var initialTop = 0;  
        var initialLeft = 0;  
        function TakeDiv()  
            div = document.getElementById("testDiv");  
            if (event.stopPropagation) event.stopPropagation();  
        function ReleaseDiv()  
                div = null;  
        function MoveDiv()  
                initialTop = event.clientY - 10;  
                initialLeft = event.clientX - 10;  
       = initialTop + "px";  
       = initialLeft + "px";     
        <form id="form1" runat="server">  
            <div style="width:50px;height:50px;background-color:Red;position:absolute;top:0px;left:0px;"   
                onmousedown="TakeDiv(); return false;" 
                onmouseup="ReleaseDiv(); return false;">  

    Kind regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top