Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NativeScript/NativeScript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c7015d4
Choose a base ref
...
head repository: NativeScript/NativeScript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8b529ec
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Nov 13, 2026

  1. fix(core): register touch animations once per view

    View.onLoaded calls TouchManager.addAnimations every time a view is loaded,
    and addAnimations added its listeners unconditionally. A view that is loaded
    more than once (navigating back to a page, returning from the background, a
    subtree that is hidden and shown again) therefore collected one more
    long-press recognizer, gesture observer and set of touch listeners on each
    load, and UIControl-backed views pushed another entry into
    TouchManager.touchHandlers.
    
    The listeners are now added once per view and the control target once per
    native view. The disposeNativeView hook is registered once and clears the
    control-target mark so a recreated native view is wired again.
    edusperoni committed Nov 13, 2026
    Configuration menu
    Copy the full SHA
    6288c15 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2026

  1. refactor(core): keep touch animation state on the view

    * One record per view, stored on the view, replaces the three WeakSets.
    * The UIControl target is held in that record instead of
      TouchManager.touchHandlers, so it is released with its view and the
      static array no longer keeps every view alive until disposeNativeView.
      touchHandlers stays declared and is marked deprecated.
    * Down and up are tracked separately, for the listeners and for the
      control target, so a direction added to touchAnimation after the first
      load is wired on the next one.
    edusperoni committed Nov 14, 2026
    Configuration menu
    Copy the full SHA
    8b529ec View commit details
    Browse the repository at this point in the history
Loading