You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
[[ DataGrid 2 ]] Fix drags to cooperate with the mobile scroller.
Previously, a data grid's mobile scroller was getting in the way of
reorder and swipe actions.
To fix for reordering, we disable the scroller whenn the user clicks
on a reorder control (and re-enable it when the reorder completes).
Swipes are a little trickier. We track dragging on mouse down, but
disabling the scroller at this point will prevent all scrolling.
Instead we attempt to determine if the user is trying to drag the
row before disabling the scroller.
-- Make sure any scroller doesn't interfere with drag reorders.
10085
+
__DisableMobileScroller
10086
+
10072
10087
puttControlintosReorderControl
10073
10088
puttIndexintosReorderStartIndex
10074
10089
puttLineintosReorderStartLine
@@ -10192,6 +10207,8 @@ command DG2_ReorderEnd
10192
10207
return "No reorder currently in progress"
10193
10208
end if
10194
10209
10210
+
__EnableMobileScroller
10211
+
10195
10212
-- Animate the control we are reordering into its new slot.
10196
10213
DG2_AnimationsAdd sReorderControl, "top", the top ofsReorderControl, DG2_TopOfControlWithLineNo(sReorderLastHoverLine) +1, the dgAnimationProp["ReorderHomingDuration"] of me, the dgAnimationProp["ReorderHomingEasing"] of me, "DG2_ReorderControlHomed", empty, thelong id of me
0 commit comments