mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 18:36:11 +02:00
fix: web, reset cursor on disconn, back to main page (#9192)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
fd178a7b6c
commit
cf06d1028f
4 changed files with 9 additions and 1 deletions
|
@ -58,6 +58,11 @@ class CursorManager {
|
|||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> resetSystemCursor() async {
|
||||
latestKey = '';
|
||||
js.context.callMethod('setByName', ['cursor', 'auto']);
|
||||
}
|
||||
}
|
||||
|
||||
class FlutterCustomMemoryImageCursor extends MouseCursor {
|
||||
|
@ -92,6 +97,7 @@ class _FlutterCustomMemoryImageCursorSession extends MouseCursorSession {
|
|||
}
|
||||
|
||||
deleteCustomCursor(String key) => CursorManager.instance.deleteCursor(key);
|
||||
resetSystemCursor() => CursorManager.instance.resetSystemCursor();
|
||||
|
||||
MouseCursor buildCursorOfCache(
|
||||
model.CursorModel cursor, double scale, model.CursorData? cache) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue