Skip to content

Commit

Permalink
published 2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Dec 1, 2020
1 parent 1b26c81 commit b7550e2
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 19 deletions.
13 changes: 9 additions & 4 deletions dist/scrollbox.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/scrollbox.es.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbox.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbox.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/jsdoc/EventEmitter-.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ <h4 class="name" id="EventEmitter">

<footer class="content-size">
<div class="footer">
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)
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)
</div>
</footer>
</div>
Expand Down
8 changes: 4 additions & 4 deletions docs/jsdoc/Scrollbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ <h4 class="name" id="Scrollbox">


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

</div>
Expand Down Expand Up @@ -2393,7 +2393,7 @@ <h4 class="name" id="ensureVisible">


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

</div>
Expand Down Expand Up @@ -2583,7 +2583,7 @@ <h4 class="name" id="resize">


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

</div>
Expand Down Expand Up @@ -3045,7 +3045,7 @@ <h4 class="name" id="updateLoop">

<footer class="content-size">
<div class="footer">
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)
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)
</div>
</footer>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/jsdoc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ <h2>license</h2>

<footer class="content-size">
<div class="footer">
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)
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)
</div>
</footer>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/jsdoc/node_modules_eventemitter3_index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ <h2>node_modules/eventemitter3/index.js</h2>

<footer class="content-size">
<div class="footer">
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)
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)
</div>
</footer>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ <h2>node_modules/eventemitter3/umd/eventemitter3.js</h2>

<footer class="content-size">
<div class="footer">
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)
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)
</div>
</footer>
</div>
Expand Down
10 changes: 7 additions & 3 deletions docs/jsdoc/src_scrollbox.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -776,14 +776,18 @@ <h2>src/scrollbox.js</h2>
if (this.pointerDown.type === 'horizontal')
{
const local = this.toLocal(e.data.global)
this.content.left += local.x - this.pointerDown.last.x
const width = this.scrollWidth + (this.isScrollbarVertical ? this.options.scrollbarSize : 0)
this.scrollbarLeft += local.x - this.pointerDown.last.x
this.content.left = this.scrollbarLeft / this.boxWidth * width
this.pointerDown.last = local
this.update()
}
else if (this.pointerDown.type === 'vertical')
{
const local = this.toLocal(e.data.global)
this.content.top += local.y - this.pointerDown.last.y
const height = this.scrollHeight + (this.isScrollbarHorizontal ? this.options.scrollbarSize : 0)
this.scrollbarTop += local.y - this.pointerDown.last.y
this.content.top = this.scrollbarTop / this.boxHeight * height
this.pointerDown.last = local
this.update()
}
Expand Down Expand Up @@ -852,7 +856,7 @@ <h2>src/scrollbox.js</h2>

<footer class="content-size">
<div class="footer">
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)
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)
</div>
</footer>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixi-scrollbox",
"version": "2.2.1",
"version": "2.2.2",
"description": "a scrollbox built for pixi.js using a masked box that scrolls vertically and/or horizontally with optional scrollbars",
"main": "dist/scrollbox.js",
"module": "dist/scrollbox.es.js",
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
import { terser } from 'rollup-plugin-terser'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'

export default [
{
Expand Down

0 comments on commit b7550e2

Please sign in to comment.