maui icon indicating copy to clipboard operation
maui copied to clipboard

Connect gestures LifeCycle to Container and Window

Open PureWeen opened this issue 3 years ago • 0 comments

Description of Change

  • Only instantiate and setup gestures if a window has been set on a VisualElement. This way, when the View is removed from the visual tree the platform gestures all get removed. This should help some with memory leaks.
  • When the ContainerView property mapper runs we now re-evaluate the gestures to see if we need to apply them to a new view

I moved the GestureManager behavior to GesturePlatformManagers so that I could just move all the Gesture handling out of VisualElement and into a separate class to help simplify VisualElement up a bit.

I added some internal interfaces that map to Controls view properties which let me write some better unit tests.

Issues Fixed

Fixes #12116

PureWeen avatar Dec 21 '22 22:12 PureWeen