mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 13:00:12 -07:00
Fix touchpad mouse crash
This commit is contained in:
parent
4a3a046e95
commit
3a6c8cf893
1 changed files with 6 additions and 2 deletions
|
|
@ -78,9 +78,13 @@ public class Touchpad extends FrameLayout {
|
|||
Thread isGrabbingThread = new Thread(() -> {
|
||||
while(true){
|
||||
if(!displayState || CallbackBridge.isGrabbing()){
|
||||
disable();
|
||||
post(() -> disable());
|
||||
|
||||
}else {
|
||||
if(displayState) enable();
|
||||
post(() -> {
|
||||
if(displayState) enable();
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue