Merge branch 'nztqa-fix-dragboard' into devel

Fix IE 11 Drag Board To Scroll. Thanks to tztqa !
This commit is contained in:
Lauri Ojansivu 2017-06-06 09:46:44 +03:00
commit 8ade0988eb
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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;
}