File tree 1 file changed +7
-1
lines changed
src/features/move-columns/js
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 268
268
var currentElmLeft = movingElm [ 0 ] . getBoundingClientRect ( ) . left - 1 ;
269
269
var currentElmRight = movingElm [ 0 ] . getBoundingClientRect ( ) . right ;
270
270
var changeValue = evt . pageX - previousMouseX ;
271
- var newElementLeft = currentElmLeft - gridLeft + changeValue ;
271
+ var newElementLeft ;
272
+ if ( gridUtil . detectBrowser ( ) === 'ie' ) {
273
+ newElementLeft = currentElmLeft + changeValue ;
274
+ }
275
+ else {
276
+ newElementLeft = currentElmLeft - gridLeft + changeValue ;
277
+ }
272
278
newElementLeft = newElementLeft < rightMoveLimit ? newElementLeft : rightMoveLimit ;
273
279
if ( ( currentElmLeft >= gridLeft || changeValue > 0 ) && ( currentElmRight <= rightMoveLimit || changeValue < 0 ) ) {
274
280
movingElm . css ( { visibility : 'visible' , 'left' : newElementLeft + 'px' } ) ;
You can’t perform that action at this time.
0 commit comments