Added mousewheel support for PixiJS Lists.

This commit is contained in:
2019-03-29 11:40:01 +01:00
parent 6c2ae3b433
commit 1292fd23f0
116 changed files with 55687 additions and 6 deletions
+5 -2
View File
@@ -10,6 +10,7 @@
<script src="../3rdparty/highlight/highlight.pack.js"></script>
<script src="../../dist/iwmlib.3rdparty.js"></script>
<script src="../3rdparty/gsap/src/uncompressed/plugins/ThrowPropsPlugin.js"></script>
<script src="../../dist/iwmlib.pixi.js"></script>
<script src="../../dist/iwmlib.js"></script>
@@ -75,7 +76,8 @@ app.loadTextures([
const bambooList = new List(bamboos, {
orientation: 'horizontal',
width: 300
width: 300,
app
})
bambooList.x = 200
bambooList.y = 10
@@ -98,7 +100,8 @@ app.loadTextures([
const textList = new List(texts, {
orientation: 'vertical',
height: 200,
padding: 2
padding: 2,
app
})
textList.x = 200
textList.y = 200