mirror of
https://github.com/Break27/kvmd.git
synced 2026-02-06 18:36:37 +08:00
web: fixed mouse
This commit is contained in:
parent
8f43d23089
commit
a60e4142b8
@ -139,8 +139,8 @@ export function Mouse() {
|
||||
var __streamMoveHandler = function(event) {
|
||||
let rect = event.target.getBoundingClientRect();
|
||||
__current_pos = {
|
||||
x: Math.min(Math.round(event.clientX - rect.left), 0),
|
||||
y: Math.min(Math.round(event.clientY - rect.top), 0),
|
||||
x: Math.max(Math.round(event.clientX - rect.left), 0),
|
||||
y: Math.max(Math.round(event.clientY - rect.top), 0),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user