mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-01 03:31:58 +00:00
@@ -7477,7 +7477,9 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
* @method adjustMouseEvent
|
* @method adjustMouseEvent
|
||||||
**/
|
**/
|
||||||
LGraphCanvas.prototype.adjustMouseEvent = function(e) {
|
LGraphCanvas.prototype.adjustMouseEvent = function(e) {
|
||||||
|
var clientX_rel = 0;
|
||||||
|
var clientY_rel = 0;
|
||||||
|
|
||||||
if (this.canvas) {
|
if (this.canvas) {
|
||||||
var b = this.canvas.getBoundingClientRect();
|
var b = this.canvas.getBoundingClientRect();
|
||||||
clientX_rel = e.clientX - b.left;
|
clientX_rel = e.clientX - b.left;
|
||||||
|
|||||||
Reference in New Issue
Block a user