mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-29 16:49:10 +08:00
check divide by 0
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
7f8b6f656e
commit
fb21f9df44
@ -810,6 +810,10 @@ class CanvasModel with ChangeNotifier {
|
|||||||
double get tabBarHeight => stateGlobal.tabBarHeight;
|
double get tabBarHeight => stateGlobal.tabBarHeight;
|
||||||
|
|
||||||
moveDesktopMouse(double x, double y) {
|
moveDesktopMouse(double x, double y) {
|
||||||
|
if (size.width == 0 || size.height == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// On mobile platforms, move the canvas with the cursor.
|
// On mobile platforms, move the canvas with the cursor.
|
||||||
final dw = getDisplayWidth() * _scale;
|
final dw = getDisplayWidth() * _scale;
|
||||||
final dh = getDisplayHeight() * _scale;
|
final dh = getDisplayHeight() * _scale;
|
||||||
|
Loading…
Reference in New Issue
Block a user