Changes between Initial Version and Version 1 of Ticket #7039, comment 2


Ignore:
Timestamp:
Jan 21, 2012, 5:49:52 PM (9 years ago)
Author:
pabloalmunia
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7039, comment 2

    initial v1  
    1 This a more stable solution (jquery.ui.mouse.js):
     1This a more stable solution (jquery.ui.mouse.js).
    22
    3 Add this into _mouseInit
    4 
    5 
    6 {{{
    7                 this.document.mouseup( function( e ) {
    8                         mouseHandled = false;
    9                 });
    10 }}}
    11 
    12 Replace in _mouseDown
    13 
    14 {{{
    15                 $(document)
    16                         .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
    17                         .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
    18 }}}
    19 
    20 with
    21 
    22 {{{
    23                 this.document
    24                         .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
    25                         .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
    26 }}}
    27 
    28 and replace in _mouseUp
    29 
    30 {{{
    31                 $(document)
    32                         .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
    33                         .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
    34 }}}
    35 
    36 with
    37 
    38 {{{
    39                 this.document
    40                         .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
    41                         .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
    42 }}}
     3You can see this changes in [https://github.com/jquery/jquery-ui/pull/581]