Improve rendering
This commit is contained in:
parent
f6c7abf8dc
commit
afe2a67ba0
20 changed files with 148 additions and 96 deletions
|
|
@ -48,7 +48,10 @@ export default class GameLoop {
|
|||
|
||||
window.addEventListener('resize', this.resize.bind(this));
|
||||
window.addEventListener('mousemove', this.onSwipe.bind(this));
|
||||
window.addEventListener('mousedown', (_) => (this.isSwipeActive = true));
|
||||
window.addEventListener('mousedown', (e) => {
|
||||
this.isSwipeActive = true;
|
||||
this.onSwipe(e);
|
||||
});
|
||||
window.addEventListener('mouseup', (_) => {
|
||||
this.isSwipeActive = false;
|
||||
this.brushPipeline.clearSwipes();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue