Re: DataGrid 2 swipe actions

2020-08-29 Thread Mike Kerner via use-livecode
I don't think so.  The scroller is a separate native object that overlays
the rest of the interface.  On desktop, the scrolling is handled by the
object with the scrollbar.

On Fri, Aug 28, 2020 at 5:09 AM Mark Smith via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Is there not a way to just disable the scrollbar (hide it?) and still have
> scrolling enabled? I am trying to do something similar in iOS and thought I
> would try:
>
> set the dgprop["show vscrollbar"] of group "Datagrid 1" to false
> set the dgProp["scroll when vscrollbar is hidden"] of group "DataGrid 1"
> to true
>
> And while it worked as desired in the development environment and when
> compiling to macOS (by hiding the scrollbar and allowing swipes to scroll
> the list), when compiled to iOS no scrolling was possible at all?
>
> Mark
>
>
> > On Aug 27, 2020, at 7:16 PM, Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> >Previously, a data grid's mobile scroller was getting in the way of
> >reorder and swipe actions.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-28 Thread Mark Smith via use-livecode
Is there not a way to just disable the scrollbar (hide it?) and still have 
scrolling enabled? I am trying to do something similar in iOS and thought I 
would try:

set the dgprop["show vscrollbar"] of group "Datagrid 1" to false
set the dgProp["scroll when vscrollbar is hidden"] of group "DataGrid 1" to true

And while it worked as desired in the development environment and when 
compiling to macOS (by hiding the scrollbar and allowing swipes to scroll the 
list), when compiled to iOS no scrolling was possible at all?

Mark
 

> On Aug 27, 2020, at 7:16 PM, Mark Waddingham via use-livecode 
>  wrote:
> 
>Previously, a data grid's mobile scroller was getting in the way of
>reorder and swipe actions.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread Mike Kerner via use-livecode
are you sure that's a good idea?  michael's PR breaks mobile scrolling.
 i'm all ears on how mobile scrolling can work without delayTouches set to
true.

On Thu, Aug 27, 2020 at 4:24 PM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Heh - well I said ‘well structured’ not ‘literary’...
>
> Although that being said, the ‘singular’ noun ‘drag’ has a plural and I
> believe it is ‘drags’...
>
> e.g. ‘It took several drags of her long fingernails down the blackboard to
> make the class pay attention’ ;)
>
> If your fix works for you - great...
>
> Unfortunately it breaks some functionality for others so isn’t mergeable
> as it stands.
>
> Warmest Regards,
>
> Mark.
>
> Sent from my iPhone
>
> > On 27 Aug 2020, at 20:58, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Don't be telling me about "well structured commit titles".  There is
> > nothing clear in that title, unless British is your first language, and
> > English is your second, and in British we add an "s" on the ends of every
> > singulars nouns, and peoples speak with a lisps.
> > In the meantime(s), setting the delayTouches to false(s) on a DG(s)
> breaks
> > scrolling(s), thus my PR(s), from however-long-ago it(s) was. :-P
> > Tag.  You(s)'re it(s)
> >
> >> On Thu, Aug 27, 2020 at 2:17 PM Mark Waddingham via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >>> On 2020-08-27 17:07, Mike Kerner via use-livecode wrote:
> >>> name's mikey.  y'all can call me...
> >>> mikey
> >>>
> >>> howdy.
> >>>
> >>> i think it was just one line of code, too, right?  it was just a matter
> >>> of
> >>> setting the delayTouches to true.  i have no idea why it was originally
> >>> "false".
> >>
> >> Well, the advantage of generally trying to make sure all substantive
> >> changes made to the source have well structured commit titles and decent
> >> descriptions in the body means its easy to find out by grokking `git
> >> log` :D
> >>
> >> It was changed precisely because of the issues Andrew pointed out with
> >> DG2, specifically in this commit:
> >>
> >> commit ac1beee1dd113e203b6715fe472cf2fa88656bd5
> >> Author: Michael McCreary 
> >> Date:   Thu Dec 21 12:49:26 2017 +
> >>
> >> [[ 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.
> >>
> >> I'd need to do some more digging to see if the highlight on touch has
> >> actually been caused by something else since  as I don't recall it being
> >> an issue, or noticed when DG2 debuted - but I could be wrong. Especially
> >> more since Android has never had a delayTouches mode.
> >>
> >> Either this problem also affects Android, which means turning
> >> delayTouches on is not really an option (given the negative consequences
> >> to DG2 behavior); or it doesn't affect Android in which case something
> >> else has changed (potentially in the iOS scroller control itself).
> >>
> >> I suspect we will just need a short timer on mouse down so that it only
> >> triggers a highlight *if* a scroll message isn't received within the
> >> interval of the timer.
> >>
> >> Warmest Regards,
> >>
> >> Mark.
> >>
> >> --
> >> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> >> LiveCode: Everyone can create apps
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >   and did a little diving.
> > And God said, "This is good."
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third 

Re: DataGrid 2 swipe actions

2020-08-27 Thread Mike Kerner via use-livecode
https://quality.livecode.com/show_bug.cgi?id=22798
i submitted a PR as well.
If you do a Show Package Contents on the LC binary, then navigate to
Content->Tools->/Toolset->palettes->revdatagridlibrary
and open "behaviorsdatagridbuttonbehavior.livecodescript"
change line 371 to
mobileControlSet sScrollerId, "delayTouches", "true"


On Thu, Aug 27, 2020 at 4:33 PM JeeJeeStudio via use-livecode <
use-livecode@lists.runrev.com> wrote:

> you have to check the bug quality site for that and search for the DG2
> I know there was a fix for the ID thingy, if i understand correctly what
> you ask.
> because if i remember correct the ID created by the dg scroller was not
> 'detectable'
> But to be sure on it check the quality site or one of the releasenotes when
> the DG2 came out
>
> Op do 27 aug. 2020 om 21:58 schreef Andrew at MidWest Coast Media via
> use-livecode :
>
> > My apologies to Mike AND Mark on the misquote, and *bump* to this bug. I
> > had too many QC tabs open for bugs, am I right? ;)
> >
> > Is there a way to send a mobileControlSet “delayTouches” command to the
> > scroller created? I wasn’t sure how to get the ID since the DataGrid code
> > made the scroller.
> >
> > -Andrew Bell
> >
> > >
> > > Subject: Re: DataGrid 2 swipe actions
> > > Message-ID: <166ab8a2-7e58-2303-4d72-f366960d9...@sonic.net>
> > > Content-Type: text/plain; charset=utf-8; format=flowed
> > >
> > > On 8/26/20 9:36 PM, Andrew at MidWest Coast Media via use-livecode
> wrote:
> > >
> > >> The highlighted row when scrolling is a separate bug patched by Mike
> > Wieder  https://quality.livecode.com/show_bug.cgi?id=22798 <
> > https://quality.livecode.com/show_bug.cgi?id=22798> awaiting a GitHub
> > merge, but turning on delayTouches makes the swipe animation jerky
> because
> > the scroller has to decide if it?s scrolling first so the swipe controls
> > aren?t very responsive. Would be curious if these two things can live in
> > harmony. Any DG2 advice?
> > >
> > > That's actually Mike Kerner's fix. I just added a comment. Or two.
> > > Trying to prioritize getting it looked at.
> > >
> > > --
> > >  Mark Wieder
> > >  ahsoftw...@gmail.com
> > >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread JeeJeeStudio via use-livecode
you have to check the bug quality site for that and search for the DG2
I know there was a fix for the ID thingy, if i understand correctly what
you ask.
because if i remember correct the ID created by the dg scroller was not
'detectable'
But to be sure on it check the quality site or one of the releasenotes when
the DG2 came out

Op do 27 aug. 2020 om 21:58 schreef Andrew at MidWest Coast Media via
use-livecode :

> My apologies to Mike AND Mark on the misquote, and *bump* to this bug. I
> had too many QC tabs open for bugs, am I right? ;)
>
> Is there a way to send a mobileControlSet “delayTouches” command to the
> scroller created? I wasn’t sure how to get the ID since the DataGrid code
> made the scroller.
>
> -Andrew Bell
>
> >
> > Subject: Re: DataGrid 2 swipe actions
> > Message-ID: <166ab8a2-7e58-2303-4d72-f366960d9...@sonic.net>
> > Content-Type: text/plain; charset=utf-8; format=flowed
> >
> > On 8/26/20 9:36 PM, Andrew at MidWest Coast Media via use-livecode wrote:
> >
> >> The highlighted row when scrolling is a separate bug patched by Mike
> Wieder  https://quality.livecode.com/show_bug.cgi?id=22798 <
> https://quality.livecode.com/show_bug.cgi?id=22798> awaiting a GitHub
> merge, but turning on delayTouches makes the swipe animation jerky because
> the scroller has to decide if it?s scrolling first so the swipe controls
> aren?t very responsive. Would be curious if these two things can live in
> harmony. Any DG2 advice?
> >
> > That's actually Mike Kerner's fix. I just added a comment. Or two.
> > Trying to prioritize getting it looked at.
> >
> > --
> >  Mark Wieder
> >  ahsoftw...@gmail.com
> >
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread Mark Waddingham via use-livecode
Heh - well I said ‘well structured’ not ‘literary’...

Although that being said, the ‘singular’ noun ‘drag’ has a plural and I believe 
it is ‘drags’... 

e.g. ‘It took several drags of her long fingernails down the blackboard to make 
the class pay attention’ ;)

If your fix works for you - great...

Unfortunately it breaks some functionality for others so isn’t mergeable as it 
stands.

Warmest Regards,

Mark.

Sent from my iPhone

> On 27 Aug 2020, at 20:58, Mike Kerner via use-livecode 
>  wrote:
> 
> Don't be telling me about "well structured commit titles".  There is
> nothing clear in that title, unless British is your first language, and
> English is your second, and in British we add an "s" on the ends of every
> singulars nouns, and peoples speak with a lisps.
> In the meantime(s), setting the delayTouches to false(s) on a DG(s) breaks
> scrolling(s), thus my PR(s), from however-long-ago it(s) was. :-P
> Tag.  You(s)'re it(s)
> 
>> On Thu, Aug 27, 2020 at 2:17 PM Mark Waddingham via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> On 2020-08-27 17:07, Mike Kerner via use-livecode wrote:
>>> name's mikey.  y'all can call me...
>>> mikey
>>> 
>>> howdy.
>>> 
>>> i think it was just one line of code, too, right?  it was just a matter
>>> of
>>> setting the delayTouches to true.  i have no idea why it was originally
>>> "false".
>> 
>> Well, the advantage of generally trying to make sure all substantive
>> changes made to the source have well structured commit titles and decent
>> descriptions in the body means its easy to find out by grokking `git
>> log` :D
>> 
>> It was changed precisely because of the issues Andrew pointed out with
>> DG2, specifically in this commit:
>> 
>> commit ac1beee1dd113e203b6715fe472cf2fa88656bd5
>> Author: Michael McCreary 
>> Date:   Thu Dec 21 12:49:26 2017 +
>> 
>> [[ 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.
>> 
>> I'd need to do some more digging to see if the highlight on touch has
>> actually been caused by something else since  as I don't recall it being
>> an issue, or noticed when DG2 debuted - but I could be wrong. Especially
>> more since Android has never had a delayTouches mode.
>> 
>> Either this problem also affects Android, which means turning
>> delayTouches on is not really an option (given the negative consequences
>> to DG2 behavior); or it doesn't affect Android in which case something
>> else has changed (potentially in the iOS scroller control itself).
>> 
>> I suspect we will just need a short timer on mouse down so that it only
>> triggers a highlight *if* a scroll message isn't received within the
>> interval of the timer.
>> 
>> Warmest Regards,
>> 
>> Mark.
>> 
>> --
>> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>> LiveCode: Everyone can create apps
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread Martin Koob via use-livecode
I thought it was only former hobbitses with powerful rings that talked that way.

Martin
 
> On Aug 27, 2020, at 3:57 PM, Mike Kerner via use-livecode 
>  wrote:
> 
> in British we add an "s" on the ends of every
> singulars nouns, and peoples speak with a lisps.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread Andrew at MidWest Coast Media via use-livecode
My apologies to Mike AND Mark on the misquote, and *bump* to this bug. I had 
too many QC tabs open for bugs, am I right? ;) 

Is there a way to send a mobileControlSet “delayTouches” command to the 
scroller created? I wasn’t sure how to get the ID since the DataGrid code made 
the scroller. 

-Andrew Bell

> 
> Subject: Re: DataGrid 2 swipe actions
> Message-ID: <166ab8a2-7e58-2303-4d72-f366960d9...@sonic.net>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 8/26/20 9:36 PM, Andrew at MidWest Coast Media via use-livecode wrote:
> 
>> The highlighted row when scrolling is a separate bug patched by Mike Wieder  
>> https://quality.livecode.com/show_bug.cgi?id=22798 
>> <https://quality.livecode.com/show_bug.cgi?id=22798> awaiting a GitHub 
>> merge, but turning on delayTouches makes the swipe animation jerky because 
>> the scroller has to decide if it?s scrolling first so the swipe controls 
>> aren?t very responsive. Would be curious if these two things can live in 
>> harmony. Any DG2 advice?
> 
> That's actually Mike Kerner's fix. I just added a comment. Or two.
> Trying to prioritize getting it looked at.
> 
> -- 
>  Mark Wieder
>  ahsoftw...@gmail.com
> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread Mike Kerner via use-livecode
Don't be telling me about "well structured commit titles".  There is
nothing clear in that title, unless British is your first language, and
English is your second, and in British we add an "s" on the ends of every
singulars nouns, and peoples speak with a lisps.
In the meantime(s), setting the delayTouches to false(s) on a DG(s) breaks
scrolling(s), thus my PR(s), from however-long-ago it(s) was. :-P
Tag.  You(s)'re it(s)

On Thu, Aug 27, 2020 at 2:17 PM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2020-08-27 17:07, Mike Kerner via use-livecode wrote:
> > name's mikey.  y'all can call me...
> > mikey
> >
> > howdy.
> >
> > i think it was just one line of code, too, right?  it was just a matter
> > of
> > setting the delayTouches to true.  i have no idea why it was originally
> > "false".
>
> Well, the advantage of generally trying to make sure all substantive
> changes made to the source have well structured commit titles and decent
> descriptions in the body means its easy to find out by grokking `git
> log` :D
>
> It was changed precisely because of the issues Andrew pointed out with
> DG2, specifically in this commit:
>
> commit ac1beee1dd113e203b6715fe472cf2fa88656bd5
> Author: Michael McCreary 
> Date:   Thu Dec 21 12:49:26 2017 +
>
>  [[ 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.
>
> I'd need to do some more digging to see if the highlight on touch has
> actually been caused by something else since  as I don't recall it being
> an issue, or noticed when DG2 debuted - but I could be wrong. Especially
> more since Android has never had a delayTouches mode.
>
> Either this problem also affects Android, which means turning
> delayTouches on is not really an option (given the negative consequences
> to DG2 behavior); or it doesn't affect Android in which case something
> else has changed (potentially in the iOS scroller control itself).
>
> I suspect we will just need a short timer on mouse down so that it only
> triggers a highlight *if* a scroll message isn't received within the
> interval of the timer.
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread Mark Waddingham via use-livecode

On 2020-08-27 17:07, Mike Kerner via use-livecode wrote:

name's mikey.  y'all can call me...
mikey

howdy.

i think it was just one line of code, too, right?  it was just a matter 
of

setting the delayTouches to true.  i have no idea why it was originally
"false".


Well, the advantage of generally trying to make sure all substantive 
changes made to the source have well structured commit titles and decent 
descriptions in the body means its easy to find out by grokking `git 
log` :D


It was changed precisely because of the issues Andrew pointed out with 
DG2, specifically in this commit:


commit ac1beee1dd113e203b6715fe472cf2fa88656bd5
Author: Michael McCreary 
Date:   Thu Dec 21 12:49:26 2017 +

[[ 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.

I'd need to do some more digging to see if the highlight on touch has 
actually been caused by something else since  as I don't recall it being 
an issue, or noticed when DG2 debuted - but I could be wrong. Especially 
more since Android has never had a delayTouches mode.


Either this problem also affects Android, which means turning 
delayTouches on is not really an option (given the negative consequences 
to DG2 behavior); or it doesn't affect Android in which case something 
else has changed (potentially in the iOS scroller control itself).


I suspect we will just need a short timer on mouse down so that it only 
triggers a highlight *if* a scroll message isn't received within the 
interval of the timer.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread Mike Kerner via use-livecode
name's mikey.  y'all can call me...
mikey

howdy.

i think it was just one line of code, too, right?  it was just a matter of
setting the delayTouches to true.  i have no idea why it was originally
"false".

On Thu, Aug 27, 2020 at 11:39 AM Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 8/26/20 9:36 PM, Andrew at MidWest Coast Media via use-livecode wrote:
>
> > The highlighted row when scrolling is a separate bug patched by Mike
> Wieder  https://quality.livecode.com/show_bug.cgi?id=22798 <
> https://quality.livecode.com/show_bug.cgi?id=22798> awaiting a GitHub
> merge, but turning on delayTouches makes the swipe animation jerky because
> the scroller has to decide if it’s scrolling first so the swipe controls
> aren’t very responsive. Would be curious if these two things can live in
> harmony. Any DG2 advice?
>
> That's actually Mike Kerner's fix. I just added a comment. Or two.
> Trying to prioritize getting it looked at.
>
> --
>   Mark Wieder
>   ahsoftw...@gmail.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: DataGrid 2 swipe actions

2020-08-27 Thread Mark Wieder via use-livecode

On 8/26/20 9:36 PM, Andrew at MidWest Coast Media via use-livecode wrote:


The highlighted row when scrolling is a separate bug patched by Mike Wieder  
https://quality.livecode.com/show_bug.cgi?id=22798 
 awaiting a GitHub merge, 
but turning on delayTouches makes the swipe animation jerky because the scroller has 
to decide if it’s scrolling first so the swipe controls aren’t very responsive. Would 
be curious if these two things can live in harmony. Any DG2 advice?


That's actually Mike Kerner's fix. I just added a comment. Or two.
Trying to prioritize getting it looked at.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


DataGrid 2 swipe actions

2020-08-26 Thread Andrew at MidWest Coast Media via use-livecode
I was inspired by today’s Lockdown Learning Series presentation and looked at 
adding swipe gestures to a current project. This whole process made WAY more 
sense after re-watching Michael’s presentation (I saw it live too, but was over 
my head last year). I’m struggling with a large DG. I’ve got my custom swipe 
controls working and triggering custom swipe actions. But I’m having problems 
with my mouseDown.

If there is a swipe control open and you tap a different visible row, the open 
swipe control is closed (with or w/o animation). 
If there is a swipe control open and the DG scrolls to a point where that 
control is no longer on-screen, that swipe control doesn’t close even though a 
new row is highlighted. 

The closest workaround I could come up with was to check for vertical scroll 
and just kill all swipe controls. Is this expected behavior or bug?

on scrollerDidScroll pHScroll, pVScroll
if pVScroll > 50 then
dispatch "RowSwipeHideControl" to group "DataGrid" with TRUE
end if
end scrollerDidScroll

The highlighted row when scrolling is a separate bug patched by Mike Wieder  
https://quality.livecode.com/show_bug.cgi?id=22798 
 awaiting a GitHub merge, 
but turning on delayTouches makes the swipe animation jerky because the 
scroller has to decide if it’s scrolling first so the swipe controls aren’t 
very responsive. Would be curious if these two things can live in harmony. Any 
DG2 advice?

-Andrew Bell
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode