Skip to content

Commit

Permalink
Merge pull request #518 from LinqLover/fix-win-evt-timestamps
Browse files Browse the repository at this point in the history
Fix timestamps for DragDrop events on Windows
  • Loading branch information
krono committed Sep 11, 2020
2 parents 2f31daf + a7fd312 commit d2c335a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -242,3 +242,7 @@ platforms/unix/config/autom4te.cache/
/products/debug/*
*.cer
*.p12

# Editors
.vs/*
.vscode/*
3 changes: 2 additions & 1 deletion platforms/win32/vm/sqWin32Window.c
Expand Up @@ -1268,7 +1268,8 @@ int recordDragDropEvent(HWND wnd, int dragType, int x, int y, int numFiles)

/* first the basics */
evt->type = EventTypeDragDropFiles;
evt->timeStamp = ioMicroMSecs();
// Be consistent with MSG.time source which is recorded for regular mouse events
evt->timeStamp = GetTickCount();
evt->dragType = dragType;
evt->x = x;
evt->y = y;
Expand Down

0 comments on commit d2c335a

Please sign in to comment.