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:
cxl 2020-10-09 15:15:26 +00:00
parent 2f994138e2
commit c8cb385443

View file

@ -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);