From 2740b2a224832235fcf307c1dd5e7c9e57666fc5 Mon Sep 17 00:00:00 2001 From: Oliver Sartun Date: Mon, 18 Dec 2017 15:25:25 +0100 Subject: [PATCH] Emit events on _translate as well --- build/iscroll-infinite.js | 4 ++++ build/iscroll-probe.js | 4 ++++ src/probe/build.json | 1 + 3 files changed, 9 insertions(+) diff --git a/build/iscroll-infinite.js b/build/iscroll-infinite.js index 41486e4c..93e9d461 100644 --- a/build/iscroll-infinite.js +++ b/build/iscroll-infinite.js @@ -966,6 +966,10 @@ IScroll.prototype = { this.x = x; this.y = y; + if ( this.options.probeType > 1 ) { + this._execEvent('scroll'); + } + // INSERT POINT: _translate }, diff --git a/build/iscroll-probe.js b/build/iscroll-probe.js index 68e9e43a..40e9e1a5 100644 --- a/build/iscroll-probe.js +++ b/build/iscroll-probe.js @@ -984,6 +984,10 @@ IScroll.prototype = { } + if ( this.options.probeType > 1 ) { + this._execEvent('scroll'); + } + // INSERT POINT: _translate }, diff --git a/src/probe/build.json b/src/probe/build.json index 4cc93c05..b93b8b89 100644 --- a/src/probe/build.json +++ b/src/probe/build.json @@ -2,6 +2,7 @@ "insert": { "NORMALIZATION": "\tif ( this.options.probeType == 3 ) {\n\t\tthis.options.useTransition = false;\t}", "_wheel": "\t\tif ( this.options.probeType > 1 ) {\n\t\t\tthis._execEvent('scroll');\n\t\t}", + "_translate": "\t\tif ( this.options.probeType > 1 ) {\n\t\t\tthis._execEvent('scroll');\n\t\t}", "indicator._move": "probe/indicator._move.js" }, "replace": {