MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / DragThreshold

Method DragThreshold

scintilla/src/Editor.cxx:6213–6219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6211}
6212
6213bool Editor::DragThreshold ( Point ptStart, Point ptNow )
6214{
6215 int xMove = ptStart.x - ptNow.x;
6216 int yMove = ptStart.y - ptNow.y;
6217 int distanceSquared = xMove * xMove + yMove * yMove;
6218 return distanceSquared > 16;
6219}
6220
6221void Editor::StartDrag()
6222{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected