MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / UpdateDrag

Method UpdateDrag

src/visual_feature.cpp:106–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void VisualDraggableFeature::UpdateDrag(Vector2D d, bool single_axis) {
107 if (single_axis)
108 d = d.SingleAxis();
109
110 pos = start + d;
111}
112
113bool VisualDraggableFeature::HasMoved() const {
114 return pos != start;

Callers 1

OnMouseEventMethod · 0.45

Calls 1

SingleAxisMethod · 0.80

Tested by

no test coverage detected