mirror of https://github.com/espruino/BangleApps
Tabs
parent
0aa5d76cbf
commit
29e2387e4a
|
@ -257,7 +257,7 @@ function bjsGetButtonState() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function initDragEvents() {
|
function initDragEvents() {
|
||||||
Bangle.on("drag", e => {
|
Bangle.on("drag", e => {
|
||||||
if (!drag) { // start dragging
|
if (!drag) { // start dragging
|
||||||
drag = {x: e.x, y: e.y};
|
drag = {x: e.x, y: e.y};
|
||||||
} else if (!e.b) { // released
|
} else if (!e.b) { // released
|
||||||
|
|
Loading…
Reference in New Issue