Skip to content

Commit

Permalink
Merge pull request #237 from MasatoMakino/MasatoMakino-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
MasatoMakino authored Mar 10, 2024
2 parents f42d0f6 + 0801af4 commit 5069192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const slider = new SliderView({
button: new Graphics(...),
mask: new Graphics(...),
minPosition: 0,
maxPosition: SLIDER_W,
maxPosition: 320, //slider width
rate: 0.0,
canvas : app.view // Option : global drag on canvas element
canvas : app.canvas // Option : global drag on canvas element
});

slider.on("slider_change", e => {
Expand Down Expand Up @@ -72,6 +72,6 @@ Since v7, pixi.js does not get pointer events where nothing is drawn. Give a can
```js
const slider = new SliderView(
...,
canvas: app.view
canvas: app.canvas
});
```

0 comments on commit 5069192

Please sign in to comment.