Skip to content

Commit

Permalink
cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Dec 7, 2018
1 parent aec1632 commit 379a51c
Show file tree
Hide file tree
Showing 14 changed files with 2,569 additions and 1,082 deletions.
649 changes: 529 additions & 120 deletions bundle/scrollbox.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/scrollbox.min.js

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions dist/scrollbox.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function vertical()
.drawCircle(Random.range(radius, 290 - radius), Random.range(radius, size - radius), radius)
.endFill()
}
const text = scrollbox.content.addChild(new PIXI.Text(' vertical scroll ', { fill: 0xffffff, fontSize: 14 }))
const text = scrollbox.content.addChild(new PIXI.Text(' vertical scroll (drag anywhere)', { fill: 0xffffff, fontSize: 14 }))
box.beginFill(0).drawRect(0, 0, text.width, text.height).endFill()
scrollbox.update()
}
Expand Down Expand Up @@ -86,7 +86,7 @@ window.onload = function ()
horizontalVertical()
vertical()
horizontal()
const nodrag = horizontalVertical('dragScroll=false')
const nodrag = horizontalVertical('dragScroll=false (drag scrollbars to move)')
nodrag.position.set(400, 425)
nodrag.dragScroll = false
window.addEventListener('resize', resize)
Expand Down
2,035 changes: 1,223 additions & 812 deletions docs/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 379a51c

Please sign in to comment.