mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixes #78 revisited weight handycap
This commit is contained in:
parent
b6d67a0581
commit
e404ad3598
7 changed files with 27 additions and 16 deletions
|
|
@ -115,7 +115,11 @@ function (Parent, KeyboardInput, DomController, Settings, Swiper) {
|
|||
self.playerController.handActionRequest(options);
|
||||
} else {
|
||||
self.swiper = new Swiper();
|
||||
self.swiper.draw(e);
|
||||
|
||||
self.draw({
|
||||
movementX: 0,
|
||||
movementY: 0
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -184,6 +188,7 @@ function (Parent, KeyboardInput, DomController, Settings, Swiper) {
|
|||
|
||||
this.mousePosition.x += movementX;
|
||||
this.mousePosition.y += movementY;
|
||||
|
||||
this.swiper.swipe(this.mousePosition.x, -this.mousePosition.y);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue