X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Ftableresize%2Fplugin.js;h=d7d52ea2d1148a41b02e909cce933bb9f89ab799;hp=a28ab12360c602bab2d1a0850b3e54f2d7f4ee2d;hb=fb481ba0a7d298e3e7b9034fcb9f2afdc6e8e796;hpb=6e682412d5cc0dfaedb376482e585bf2989c6863 diff --git a/_source/plugins/tableresize/plugin.js b/_source/plugins/tableresize/plugin.js index a28ab12..d7d52ea 100644 --- a/_source/plugins/tableresize/plugin.js +++ b/_source/plugins/tableresize/plugin.js @@ -287,7 +287,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license function onMouseMove( evt ) { - move( evt.data.$.clientX ); + move( evt.data.getPageOffset().x ); } document = editor.document; @@ -403,9 +403,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { evt = evt.data; + var pageX = evt.getPageOffset().x; + // If we're already attached to a pillar, simply move the // resizer. - if ( resizer && resizer.move( evt.$.clientX ) ) + if ( resizer && resizer.move( pageX ) ) { cancel( evt ); return; @@ -429,7 +431,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license table.on( 'mousedown', clearPillarsCache ); } - var pillar = getPillarAtPosition( pillars, evt.$.clientX ); + var pillar = getPillarAtPosition( pillars, pageX ); if ( pillar ) { !resizer && ( resizer = new columnResizer( editor ) );