From 2b824ce22a4e120f745cae6b7f85589c4c0e92d9 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 18 Mar 2024 21:50:08 +0100 Subject: [PATCH] Fix UI Canvas double scale apply --- Source/Engine/UI/GUI/CanvasScaler.cs | 91 ---------------------------- 1 file changed, 91 deletions(-) diff --git a/Source/Engine/UI/GUI/CanvasScaler.cs b/Source/Engine/UI/GUI/CanvasScaler.cs index b36a62f27..612de3f59 100644 --- a/Source/Engine/UI/GUI/CanvasScaler.cs +++ b/Source/Engine/UI/GUI/CanvasScaler.cs @@ -469,97 +469,6 @@ namespace FlaxEngine.GUI return result; } - /// - public override DragDropEffect OnDragEnter(ref Float2 location, DragData data) - { - location /= _scale; - return base.OnDragEnter(ref location, data); - } - - /// - public override DragDropEffect OnDragMove(ref Float2 location, DragData data) - { - location /= _scale; - return base.OnDragMove(ref location, data); - } - - /// - public override DragDropEffect OnDragDrop(ref Float2 location, DragData data) - { - location /= _scale; - return base.OnDragDrop(ref location, data); - } - - /// - public override void OnMouseEnter(Float2 location) - { - location /= _scale; - base.OnMouseEnter(location); - } - - /// - public override void OnMouseMove(Float2 location) - { - location /= _scale; - base.OnMouseMove(location); - } - - /// - public override bool OnMouseDown(Float2 location, MouseButton button) - { - location /= _scale; - return base.OnMouseDown(location, button); - } - - /// - public override bool OnMouseUp(Float2 location, MouseButton button) - { - location /= _scale; - return base.OnMouseUp(location, button); - } - - /// - public override bool OnMouseDoubleClick(Float2 location, MouseButton button) - { - location /= _scale; - return base.OnMouseDoubleClick(location, button); - } - - /// - public override bool OnMouseWheel(Float2 location, float delta) - { - location /= _scale; - return base.OnMouseWheel(location, delta); - } - - /// - public override void OnTouchEnter(Float2 location, int pointerId) - { - location /= _scale; - base.OnTouchEnter(location, pointerId); - } - - /// - public override void OnTouchMove(Float2 location, int pointerId) - { - location /= _scale; - base.OnTouchMove(location, pointerId); - } - - /// - public override bool OnTouchDown(Float2 location, int pointerId) - { - location /= _scale; - return base.OnTouchDown(location, pointerId); - } - - /// - public override bool OnTouchUp(Float2 location, int pointerId) - { - location /= _scale; - return base.OnTouchUp(location, pointerId); - } - #endregion } }