Web vs Native (was Re: HTML5 limitations?)
jonathandlynch at gmail.com
jonathandlynch at gmail.com
Sat Jul 29 15:12:04 EDT 2017
Hi Jim,
One can have interruptible animations by using a handler that progresses the movement a single step, then calls itself using a send-in-time construction to initiate the next step.
I recently posted a momentum scrolling script on this list that uses this technique. Does that help?
Sent from my iPhone
> On Jul 29, 2017, at 2:51 PM, Jim Lambert via use-livecode <use-livecode at lists.runrev.com> wrote:
>
>> On 7/28/17 1:14 PM, Mark Waddingham via use-livecode wrote:
>>
>> I think the first thing we would need would be builtin
>> gesture support. In this case, this isn't even 'a gesture has happened'
>> but 'it looks like a swipe is just starting' (I think at least). e.g.
>> swipeBegin / swipeContinue / swipeEnd / swipeCancel.
>>
>> We'd probably also want a 'swipe' message at the end - i.e. there are
>> cases where it is the fact that 'swipe' has happened that you want, and
>> not the details of the process it went through (perhaps swipeEnd would
>> be fine here, though).
>>
>> I do like the idea of having the animation of a gesture in the UI being
>> tied to the event - its a nice low-code approach for a very common
>> problem.
>
> How might LC support interactive and interruptible animations as shown in this video on Advanced Animations with UIKit?
> https://developer.apple.com/videos/play/wwdc2017/230/ <https://developer.apple.com/videos/play/wwdc2017/230/>
>
> This capability is generally applicable to any animation using UIKit. Even non-moving transitions, such as blurring, are supported in an interactive way.
> If supported by LC, it would be useable beyond just moving from card to card or swiping out a sidebar.
>
> But of course, the particular capability shown in the video is OS-specific. Whereas LC strives to be platform agnostic.
>
> Jim Lambert
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list