Rob Pilling
42e925d35e
widhid: continue on HID Report errors
...
e.g.
```
Uncaught Error: ERR 0xf (FORBIDDEN) (:3020)
at line 1 col 2082 in widhid.wid.js
NRF.sendHIDReport([1,code],function(){return NRF.sendHIDReport([1,0]);});
^
in function "sendHid" called from line 1 col 2165 in widhid.wid.js
sendHid(0x10);
^
in function "toggle" called from line 1 col 567 in widhid.wid.js
...s(e.y-anchor.y)<2)){toggle();onEvent();return;}}if(waitForRelease)...
^
in function called from system
```
2023-05-16 23:26:55 +01:00
Rob Pilling
c4b08bda3b
widhid: fix "#ondrag" singular being a function
2023-05-16 23:16:34 +01:00
Rob Pilling
109fd078f4
popcon: use E.stopEventPropagation() for the drag handler
2023-05-13 08:44:50 +01:00
Rob Pilling
9a3ac3bc7a
widhid: better clash detection
2023-05-10 23:13:19 +01:00
Rob Pilling
a9affac57e
widhid: disable (temporarily) if a menu's shown
2023-05-10 21:57:33 +01:00
Rob Pilling
051b417971
widhid: don't check clkinfo focus on drag
...
... because we've already disabled those handlers
2023-05-10 21:56:59 +01:00
Rob Pilling
abc57030ad
widhid: delete unused variables
2023-05-10 08:05:29 +01:00
Rob Pilling
6cca01db0b
widhid: only register swipe/activation handler when connected
2023-05-09 07:38:56 +01:00
Rob Pilling
c62056a0cf
widhid: regenerate JS
2023-05-08 22:33:50 +01:00
Rob Pilling
610f4d61a7
widhid: initial display based on NRF.connected
2023-05-08 22:33:50 +01:00
Rob Pilling
a2e9c8db1e
widhid: disable all touch events when active
2023-05-08 22:33:50 +01:00
Rob Pilling
28fe46f77e
widhid: disable if clkinfo is focused
2023-05-08 22:33:50 +01:00
Rob Pilling
0192b150e7
widhid: only draw if width > 0 (i.e. when connected)
2023-05-08 22:33:50 +01:00
Rob Pilling
69bfcfeb99
widhid: regenerate JS
2023-05-08 22:33:50 +01:00
Rob Pilling
9cdf97164c
widhid: new widget
2023-05-08 22:33:50 +01:00