Added mousewheel support for PixiJS Lists.
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user