Skip to content

Commit d103dd2

Browse files
committed
fix flems demo
1 parent 24748cf commit d103dd2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
{
4747
name: 'viewport.min.js',
4848
type: 'script',
49-
content: await load('viewport.min.js'),
49+
content: await load('pixi_viewport.umd.cjs'),
5050
}
5151
],
5252
links: [{
5353
name: 'PIXI',
54-
url: 'https://cdnjs.cloudflare.com/ajax/libs/pixi.js/6.0.2/browser/pixi.js',
54+
url: 'https://cdnjs.cloudflare.com/ajax/libs/pixi.js/7.1.2/pixi.min.js',
5555
}],
5656
console: false,
5757
})

docs/public/sample/viewport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function create(renderer) {
2727
// forceHitArea: null, // change the default hitArea from world size to a new value
2828
// noTicker: false, // set this if you want to manually call update() function on each frame
2929
// ticker: PIXI.Ticker.shared, // use this PIXI.ticker for updates
30-
interaction: renderer.plugins.interaction, // InteractionManager, available from instantiated WebGLRenderer/CanvasRenderer.plugins.interaction - used to calculate pointer position relative to canvas location on screen
30+
events: renderer.events, // Events - used to calculate pointer position relative to canvas location on screen
3131
// divWheel: null, // div to attach the wheel event (uses document.body as default)
3232
// disableOnContextMenu: false, // remove oncontextmenu=() => {} from the divWheel element
3333
})

0 commit comments

Comments
 (0)