File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 98
98
* @protected
99
99
*/
100
100
_onMouseMove : function ( e ) {
101
- var target = $ ( e . target ) ;
102
- target = target . is ( this . trigger ) || target . is ( this . options . editSelector ) ?
103
- target :
104
- target . parents ( this . options . editSelector ) . first ( ) ;
101
+ var target = $ ( e . target ) ,
102
+ inner = target . find ( this . options . editSelector ) ;
105
103
106
- if ( target . size ( ) ) {
104
+ if ( $ ( e . target ) . is ( 'button' ) && inner . length ) {
105
+ target = inner ;
106
+ } else if ( ! target . is ( this . trigger ) && ! target . is ( this . options . editSelector ) ) {
107
+ target = target . parents ( this . options . editSelector ) . first ( ) ;
108
+ }
109
+
110
+ if ( target . length ) {
107
111
if ( ! target . is ( this . trigger ) ) {
108
112
this . _setPosition ( target ) ;
109
113
this . currentTarget = target ;
You can’t perform that action at this time.
0 commit comments