Explorar o código

Merge branch 'nztqa-fix-dragboard' into devel

Fix IE 11 Drag Board To Scroll. Thanks to tztqa !
Lauri Ojansivu %!s(int64=8) %!d(string=hai) anos
pai
achega
8ade0988eb
Modificáronse 2 ficheiros con 6 adicións e 2 borrados
  1. 5 1
      CHANGELOG.md
  2. 1 1
      client/components/boards/boardBody.js

+ 5 - 1
CHANGELOG.md

@@ -5,7 +5,11 @@ This release adds the following new features:
 * [Change the way to delete a list (card-like)](https://github.com/wekan/wekan/pull/1050), fixes
   [missing undo button](https://github.com/wekan/wekan/issues/1023).
 
-Thanks to GitHub users BaobabCoder for contributions.
+and fixes the following bugs:
+
+* [Fix IE 11 drag board to scroll](https://github.com/wekan/wekan/pull/1052).
+
+Thanks to GitHub users BaobabCoder and nztqa for their contributions.
 
 # v0.23 2017-05-21 Wekan release
 

+ 1 - 1
client/components/boards/boardBody.js

@@ -75,7 +75,7 @@ BlazeComponent.extendComponent({
         // the user will legitimately expect to be able to select some text with
         // his mouse.
         const noDragInside = ['a', 'input', 'textarea', 'p', '.js-list-header'];
-        if ($(evt.target).closest(noDragInside.join(',')).length === 0) {
+        if ($(evt.target).closest(noDragInside.join(',')).length === 0 && $('.lists').prop('clientHeight') > evt.offsetY) {
           this._isDragging = true;
           this._lastDragPositionX = evt.clientX;
         }