ha: remove parseInt()

pull/3375/head
Rob Pilling 2024-04-21 19:32:53 +01:00
parent c0ea3138e5
commit 216b30d640
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function sendTrigger() {
} }
Bangle.on('touch', function(btn, e){ Bangle.on('touch', function(btn, e){
var left = parseInt(g.getWidth() * 0.3); var left = g.getWidth() * 0.3;
var right = g.getWidth() - left; var right = g.getWidth() - left;
var isLeft = e.x < left; var isLeft = e.x < left;
var isRight = e.x > right; var isRight = e.x > right;