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

Method OnMouseMove

Source/Editor/GUI/Timeline/Track.cs:1131–1147  ·  view source on GitHub ↗

(Float2 location)

Source from the content-addressed store, hash-verified

1129
1130 /// <inheritdoc />
1131 public override void OnMouseMove(Float2 location)
1132 {
1133 base.OnMouseMove(location);
1134
1135 // Cache flag
1136 _mouseOverArrow = CanExpand && ArrowRect.Contains(location);
1137
1138 // Check if start drag and drop
1139 if (_isMouseDown && Float2.Distance(_mouseDownPos, location) > 10.0f)
1140 {
1141 // Clear flag
1142 _isMouseDown = false;
1143
1144 // Start
1145 DoDragDrop();
1146 }
1147 }
1148
1149 /// <inheritdoc />
1150 public override void OnMouseLeave()

Callers

nothing calls this directly

Calls 3

DoDragDropFunction · 0.85
ContainsMethod · 0.45
DistanceMethod · 0.45

Tested by

no test coverage detected