提交 7411d2da 编写于 作者: O owen-m1

fixed fallback text selection on Safari

上级 bc6b6038
......@@ -1095,6 +1095,9 @@
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback));
_on(document, 'selectstart', _this);
if (Safari) {
_css(document.body, 'user-select', 'none');
}
},
// Returns true - if no further action is needed (either inserted or another condition)
......@@ -1415,6 +1418,10 @@
_off(document, 'dragover', _checkAlignment);
}
if (Safari) {
_css(document.body, 'user-select', '');
}
this._offUpEvents();
if (evt) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册