ScrollableView zoom level

You must Login before you can answer or comment on any questions.

This question has been asked many times on this forum, from what I can tell via a search, but has never been answered ... so I'll ask it again ...

Can the zoom level be set programmatically on an individual view within a scrollableView?

Yes, you can set the zoomScale when the scrollableView is created. But there doesn't seem to be any way to control the zoom of the individual views. Is this a limitation of iOS, a limitation of Titanium, or a bug?

Also ... the 'swipe' event still doesn't fire, no matter what ... which is a pretty big problem.

— asked 2 years ago by Adam Wodon
5 Comments
  • Please post a code sample of what you have this far, as well as what Ti SDK your using? Thanks :)

    — commented 2 years ago by Matt Apperson

  • I don't have any code so far ... because nothing works programmatically. Pinching and zooming works as expected, totally fine, on the scrollable view as a whole ... like so ...

    Ti.UI.createScrollableView({ 
        currentPage: 0,
        maxZoomScale: 3,
        minZoomScale: 1,
        zoomScale: 1,
        views: [ view1,view2,view3 ]
    }),
    But I don't see any way -- and neither have numerous other users with the same question -- seen a way to then control the zoomScale of the individual user - e.g. upon an event

    Also ... wondering if you could address the 'swipe' event not firing issue ... Again, I'm not the only one, since I've seen it mentioned numerous other places. ... Using the 'scroll' event instead, but it's not really the same thing and would cause inconsistencies

    — commented 2 years ago by Adam Wodon

  • SDK being used is iOS

    — commented 2 years ago by Adam Wodon

  • Show 2 more comments

1 Answer

Your Answer

Think you can help? Login to answer this question!