Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Rounding to the nearest whole number could explain the direction bias. Sent from my iPhone > On Jun 28, 2017, at 4:31 PM, jonathandly...@gmail.com wrote: > > Are you saying the down scroll has less momentum? > > I have no idea why it would do that, but you can increase the momentum > overall

Re: Momentum Scrolling Script

2017-06-28 Thread Alejandro Tejada via use-livecode
I made this change in the script and now it reversed the behavior. Probably everyone interested could test this script on different mobile devices and computers to confirm this behavior. Al On Wed, Jun 28, 2017 at 4:31 PM, wrote: > Are you saying the down scroll has

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Are you saying the down scroll has less momentum? I have no idea why it would do that, but you can increase the momentum overall by changing tRemainingDistance/15 to a lower divisor, like tRemainingDistance/10. Sent from my iPhone > On Jun 28, 2017, at 4:23 PM, Alejandro Tejada via

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
ings, but might add a tiny bit more efficiency to the script. >> >> on mouseMove X,Y >> if allowDrag <> empty then >>set the vScroll of me to (allowDrag-Y) >> end if >> end mouseMove >> >> Regards, >> >> Scott Rossi >&

Momentum Scrolling Script

2017-06-28 Thread Alejandro Tejada via use-livecode
Really nice script, Jonathan! Thanks a lot for sharing. Previously Bernd and many LC Developers have published similar scripts. By the way, this script seems to works faster when users drags upward from Line 20 to Line 1 than dragging downwards from Line 1 to 20 Dragging upwards from Line 20

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
ctile Media, UX/UI Design > > > >> On Jun 28, 2017, at 9:05 AM, Jonathan Lynch via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> I just created and tested a momentum scrolling script on my iPhone, and it >> appears to work quite well

Re: Momentum Scrolling Script

2017-06-28 Thread Scott Rossi via use-livecode
ed and tested a momentum scrolling script on my iPhone, and it > appears to work quite well, so I thought I would share it here. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subs

Re: Momentum Scrolling Script

2017-06-28 Thread Tom Glod via use-livecode
nice going to try this out...I had a good scrolling script, but definitely not momentum based... will give it a shot...thanks. On Wed, Jun 28, 2017 at 1:04 PM, Jonathan Lynch via use-livecode < use-livecode@lists.runrev.com> wrote: > I just realized I had the wrong way of checking to see if

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
I just realized I had the wrong way of checking to see if scrolling should stop. Somehow it still worked, which is kinda weird. Here is the revised script, with checking for tCount < 1 rather than tCount > 50 - Momentum Scrolling Code Local StartDrag Local AllowDrag Local

Re: Momentum Scrolling Script

2017-06-28 Thread Sean Cole (Pi) via use-livecode
Jonathan, I would also recommend using the var name prefixes as recommended by LC in thier Tips for Writing Good Code when sharing publicly. Like this I mean: Local sStartDrag Local sAllowDrag Local sStartDragMil Local sCumulativeMomentum on mousedown focus on nothing if word 1 of the name

Re: Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
That's a good tip - it actually will affect one of my groups quite a bit - drat. Thanks Sean Sent from my iPhone > On Jun 28, 2017, at 12:29 PM, Sean Cole (Pi) via use-livecode > wrote: > > This is excellent Jonathan, Thanks. > > Another tip is to make sure

Re: Momentum Scrolling Script

2017-06-28 Thread Sean Cole (Pi) via use-livecode
This is excellent Jonathan, Thanks. Another tip is to make sure that the Group object you wish to scroll the contents of is not nested in any other groups as the will negate the AcceleratedRendering. This is not documented in the API dictionary but is a known functionality. The documentation will

Momentum Scrolling Script

2017-06-28 Thread Jonathan Lynch via use-livecode
Hi everyone, I just created and tested a momentum scrolling script on my iPhone, and it appears to work quite well, so I thought I would share it here. It also works on desktop with mouse dragging. If you see improvements, please share them. 1. Make sure to have accelerated rendering