Skip to content

Commit b7550e2

Browse files
committed
published 2.2.2
1 parent 1b26c81 commit b7550e2

12 files changed

+29
-19
lines changed

dist/scrollbox.es.js

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scrollbox.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scrollbox.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scrollbox.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/jsdoc/EventEmitter-.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ <h4 class="name" id="EventEmitter">
275275

276276
<footer class="content-size">
277277
<div class="footer">
278-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Nov 25 2020 18:34:24 GMT+0800 (Taipei Standard Time)
278+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Tue Dec 01 2020 08:19:59 GMT+0800 (Taipei Standard Time)
279279
</div>
280280
</footer>
281281
</div>

docs/jsdoc/Scrollbox.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ <h4 class="name" id="Scrollbox">
184184

185185

186186
<div class="tag-source">
187-
<a href="src_scrollbox.js.html#line58">scrollbox.js:58</a>
187+
<a href="src_scrollbox.js.html#line29">scrollbox.js:29</a>
188188
</div>
189189

190190
</div>
@@ -2393,7 +2393,7 @@ <h4 class="name" id="ensureVisible">
23932393

23942394

23952395
<div class="tag-source">
2396-
<a href="src_scrollbox.js.html#line678">scrollbox.js:678</a>
2396+
<a href="src_scrollbox.js.html#line682">scrollbox.js:682</a>
23972397
</div>
23982398

23992399
</div>
@@ -2583,7 +2583,7 @@ <h4 class="name" id="resize">
25832583

25842584

25852585
<div class="tag-source">
2586-
<a href="src_scrollbox.js.html#line655">scrollbox.js:655</a>
2586+
<a href="src_scrollbox.js.html#line659">scrollbox.js:659</a>
25872587
</div>
25882588

25892589
</div>
@@ -3045,7 +3045,7 @@ <h4 class="name" id="updateLoop">
30453045

30463046
<footer class="content-size">
30473047
<div class="footer">
3048-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Nov 25 2020 18:34:24 GMT+0800 (Taipei Standard Time)
3048+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Tue Dec 01 2020 08:19:59 GMT+0800 (Taipei Standard Time)
30493049
</div>
30503050
</footer>
30513051
</div>

docs/jsdoc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h2>license</h2>
239239

240240
<footer class="content-size">
241241
<div class="footer">
242-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Nov 25 2020 18:34:24 GMT+0800 (Taipei Standard Time)
242+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Tue Dec 01 2020 08:19:59 GMT+0800 (Taipei Standard Time)
243243
</div>
244244
</footer>
245245
</div>

docs/jsdoc/node_modules_eventemitter3_index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ <h2>node_modules/eventemitter3/index.js</h2>
506506

507507
<footer class="content-size">
508508
<div class="footer">
509-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Nov 25 2020 18:34:24 GMT+0800 (Taipei Standard Time)
509+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Tue Dec 01 2020 08:19:59 GMT+0800 (Taipei Standard Time)
510510
</div>
511511
</footer>
512512
</div>

docs/jsdoc/node_modules_eventemitter3_umd_eventemitter3.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ <h2>node_modules/eventemitter3/umd/eventemitter3.js</h2>
510510

511511
<footer class="content-size">
512512
<div class="footer">
513-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Nov 25 2020 18:34:24 GMT+0800 (Taipei Standard Time)
513+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Tue Dec 01 2020 08:19:59 GMT+0800 (Taipei Standard Time)
514514
</div>
515515
</footer>
516516
</div>

docs/jsdoc/src_scrollbox.js.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,14 +776,18 @@ <h2>src/scrollbox.js</h2>
776776
if (this.pointerDown.type === 'horizontal')
777777
{
778778
const local = this.toLocal(e.data.global)
779-
this.content.left += local.x - this.pointerDown.last.x
779+
const width = this.scrollWidth + (this.isScrollbarVertical ? this.options.scrollbarSize : 0)
780+
this.scrollbarLeft += local.x - this.pointerDown.last.x
781+
this.content.left = this.scrollbarLeft / this.boxWidth * width
780782
this.pointerDown.last = local
781783
this.update()
782784
}
783785
else if (this.pointerDown.type === 'vertical')
784786
{
785787
const local = this.toLocal(e.data.global)
786-
this.content.top += local.y - this.pointerDown.last.y
788+
const height = this.scrollHeight + (this.isScrollbarHorizontal ? this.options.scrollbarSize : 0)
789+
this.scrollbarTop += local.y - this.pointerDown.last.y
790+
this.content.top = this.scrollbarTop / this.boxHeight * height
787791
this.pointerDown.last = local
788792
this.update()
789793
}
@@ -852,7 +856,7 @@ <h2>src/scrollbox.js</h2>
852856

853857
<footer class="content-size">
854858
<div class="footer">
855-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Wed Nov 25 2020 18:34:24 GMT+0800 (Taipei Standard Time)
859+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Tue Dec 01 2020 08:19:59 GMT+0800 (Taipei Standard Time)
856860
</div>
857861
</footer>
858862
</div>

0 commit comments

Comments
 (0)