浏览代码

v-split - Fix issue that causes the split to move all the way to the left on click

Vijayakrishnan Krishnan 4 年之前
父节点
当前提交
40fd457818
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/v-splitter-px/v-splitter.js

+ 1 - 1
public/v-splitter-px/v-splitter.js

@@ -25,7 +25,7 @@ function initVSplitter(_name, _left, _right, _alignTo = null) {
     vSplit.css({left: (_left.outerWidth() * 100 / totalWidth) + '%'})
         .off('mousedown.' + _name).on('mousedown.' + _name, function(_e) {
             totalWidth = _left.parent().width();
-            origLeft = vSplit.position().left;
+            origLeft = finalLeft = vSplit.position().left;
             origX = _e.screenX;
             vMoving = true;
             $('body').addClass('v-moving');