mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-22 06:12:32 -06:00
CtrlCore: MacOS fixed issue with trackpad scroll event
git-svn-id: svn://ultimatepp.org/upp/trunk@15226 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2f994138e2
commit
c8cb385443
1 changed files with 2 additions and 0 deletions
|
|
@ -513,6 +513,8 @@ bool sDblTime(int time)
|
|||
|
||||
Image Ctrl::DispatchMouse(int e, Point p, int zd) {
|
||||
GuiLock __;
|
||||
if(e == MOUSEWHEEL && !zd) // ignore non-scroll wheel events
|
||||
return Null;
|
||||
if(e == MOUSEMOVE && repeatTopCtrl == this) {
|
||||
if(sDistMin(leftmousepos, p) > GUI_DragDistance() && GetMouseLeft()) {
|
||||
DispatchMouseEvent(LEFTDRAG, leftmousepos, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue