提交 1c36e080 编写于 作者: O owen-m1

#1458: Fixed autoscroll on MacOS Safari

上级 deefe8dc
......@@ -95,6 +95,7 @@
IE11OrLess = !!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),
Edge = !!navigator.userAgent.match(/Edge/i),
// FireFox = !!navigator.userAgent.match(/firefox/i),
Safari = !!(navigator.userAgent.match(/safari/i) && !navigator.userAgent.match(/chrome/i) && !navigator.userAgent.match(/android/i)),
CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',
......@@ -730,8 +731,9 @@
// IE does not seem to have native autoscroll,
// Edge's autoscroll seems too conditional,
// MACOS Safari does not have autoscroll,
// Firefox and Chrome are good
if (fallback || Edge || IE11OrLess) {
if (fallback || Edge || IE11OrLess || Safari) {
_autoScroll(evt, _this.options, elem, fallback);
// Listener for pointer element change
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册