Code Monkey home page Code Monkey logo

Comments (4)

darenm avatar darenm commented on June 3, 2024

For context, this is used on our document viewer to pinch-to-zoom - the translate mode works for panning,

from uno.

dr1rrb avatar dr1rrb commented on June 3, 2024

Hey @brookslindseyjr thanks for teh report.

I've also attempted to wrap the ScrollViewer with a Grid and subscribe to the ManipulationDelta there with the same results.

Did you tried to put it inside the ScrollViewer instead?

I suspect the issue is that the native UIScrollView "stoles" the pointers when it thinks that you are starting to scroll (then all pointers are going native only and we don't receive them anymore). As events are bubbling from bottom to top, if you put you container within the UIScrollView (i.e. in the ScrollViewer) we will get events first and we are able to prevent such behavior.

from uno.

dr1rrb avatar dr1rrb commented on June 3, 2024

BTW, for a viewer, you can also just remove the ScrollViewer and only use manipulation events with a RenderTransform. The only down side is that you won't get the scroll-bars.

from uno.

darenm avatar darenm commented on June 3, 2024

With the element inside the scrollviewer, we receive the events as expected.

from uno.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.