MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnMouseMove

Method OnMouseMove

Source/Editor/GUI/Tree/TreeNode.cs:1029–1052  ·  view source on GitHub ↗

(Float2 location)

Source from the content-addressed store, hash-verified

1027
1028 /// <inheritdoc />
1029 public override void OnMouseMove(Float2 location)
1030 {
1031 UpdateMouseOverFlags(location);
1032
1033 // Check if start drag and drop
1034 if (_isMouseDown && Float2.Distance(_mouseDownPos, location) > 10.0f)
1035 {
1036 // Clear flag
1037 _isMouseDown = false;
1038 _mouseDownTime = -1;
1039
1040 // Start
1041 DoDragDrop();
1042 return;
1043 }
1044
1045 // Check if animation has been finished
1046 if (_animationProgress >= 1.0f)
1047 {
1048 // Base
1049 if (_opened)
1050 base.OnMouseMove(location);
1051 }
1052 }
1053
1054 private void UpdateMouseOverFlags(Vector2 location)
1055 {

Callers

nothing calls this directly

Calls 2

DoDragDropFunction · 0.85
DistanceMethod · 0.45

Tested by

no test coverage detected