Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit ab057cc

Browse files
Merge pull request #2143 from livecode/bugfix-22903
[[ Bug 22903 ]] Send RowLeftSwipeControlClicked with target param
2 parents 3ea09ff + 7b6b868 commit ab057cc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Toolset/palettes/revdatagridlibrary/bahaviorsswipecontrolholderbehavior.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ on mouseUp
198198
if the long id of the target contains the long id of sSwipeControl then
199199
switch sSwipeControlSide
200200
case "left"
201-
dispatch DG2_GetMessageNameForTag("RowLeftSwipeControlClicked") to tRowControl
201+
dispatch DG2_GetMessageNameForTag("RowLeftSwipeControlClicked") to tRowControl with the target
202202
break
203203
case "right"
204-
dispatch DG2_GetMessageNameForTag("RowRightSwipeControlClicked") to tRowControl
204+
dispatch DG2_GetMessageNameForTag("RowRightSwipeControlClicked") to tRowControl with the target
205205
break
206206
end switch
207207
else

Toolset/palettes/revdatagridlibrary/behaviorsdatagridbuttonbehavior.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9987,11 +9987,11 @@ end EditModeHideActionControl
99879987
-- These messages are handled at this point of the message path to allow
99889988
-- users to potentially handle them at group level.
99899989

9990-
on RowLeftSwipeControlClicked
9990+
on RowLeftSwipeControlClicked pTarget
99919991
DeleteIndex the dgIndex of the target
99929992
end RowLeftSwipeControlClicked
99939993

9994-
on RowRightSwipeControlClicked
9994+
on RowRightSwipeControlClicked pTarget
99959995
DeleteIndex the dgIndex of the target
99969996
end RowRightSwipeControlClicked
99979997

notes/bugfix-22903.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure RowLeftSwipeControlClicked message is sent with a target parameter

0 commit comments

Comments
 (0)