1. #11
    Touch Premium Member
    Join Date
    Jan 2011
    Posts
    37
    Vote Rating
    0
    colworx is on a distinguished road

      0  

    Default


    Quote Originally Posted by Jackalmurdoc View Post
    I really looking forward for a fix on the pinch center issue, this is what I need.

    Thanks for all your hard work on this
    Yeah, I'm also running into an issue on Mobile Safari. When I start to pinch, the location of the image changes drastically. I'll take a look at the code...

  2. #12
    Sencha Premium Member
    Join Date
    Apr 2008
    Posts
    269
    Vote Rating
    31
    themightychris has a spectacular aura about themightychris has a spectacular aura about

      0  

    Default


    Quote Originally Posted by colworx View Post
    Yeah, I'm also running into an issue on Mobile Safari. When I start to pinch, the location of the image changes drastically. I'll take a look at the code...
    I've experienced this issue as well and have not been able to find a solution. I believe the problem is in Sencha's gesture code misidentifying a pinch as a drag when the two fingers don't touch at the same time. I believe this is the case because it is impossible to reproduce in the iOS simulator where pinch touches are always perfectly synchronized. Someone with more skill than me will need to look at the gesture code and figure out a way to implement a better threshold for pinch vs drag
    Chief Architect @ Jarv.us Innovations
    Co-captain @ Code for Philly

    Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.

    Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects: https://github.com/JarvusInnovations/sencha-hotfixes

  3. #13
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Are any of you coming to the conference / in the bay area? Would be great to meet up and talk over stuff like this, we'd love to help out if we can (aside from fixing that ancient bug of course - our bad :/)
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  4. #14
    Sencha Premium Member
    Join Date
    Apr 2008
    Posts
    269
    Vote Rating
    31
    themightychris has a spectacular aura about themightychris has a spectacular aura about

      0  

    Default


    I'm at senchacon! w00t!

    I've got a new version of this plugin about ready to publish but it's still plagued by a couple issues, I'd love to discuss them in more detail if you've got some time this week
    Chief Architect @ Jarv.us Innovations
    Co-captain @ Code for Philly

    Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.

    Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects: https://github.com/JarvusInnovations/sencha-hotfixes

  5. #15
    Sencha User armode's Avatar
    Join Date
    Nov 2011
    Location
    Germany / Darmstadt
    Posts
    64
    Vote Rating
    4
    armode is on a distinguished road

      0  

    Default


    Thanks for your great pinching example App! That helps me alot...

    Do you have a new version of your plugin, maybe with a fix for the pinch center issue?

  6. #16
    Sencha User
    Join Date
    Aug 2011
    Posts
    36
    Vote Rating
    2
    bjudson is on a distinguished road

      0  

    Default github

    github


    Not sure if everyone saw this, but there is an updated version on github:
    https://github.com/JarvusInnovations....PinchCarousel

    I talked to themightchris at senchacon, and he said he will be putting it in the sencha app store or whatever it is going to be called. But for now, check github

  7. #17
    Sencha Premium Member
    Join Date
    Apr 2008
    Posts
    269
    Vote Rating
    31
    themightychris has a spectacular aura about themightychris has a spectacular aura about

      0  

    Default


    Thanks bjudson, the latest version of the components are on GitHub but there is an entry in the Sencha market too: http://market.sencha.com/addon/jarvu...-pinchcarousel

    I'll publish releases from GitHub to the market, so github is the best place to follow.

    The current code on both includes a workaround for the pinch-center issue where the image will automatically "snap" back to center positioning and 1.0 scale when you zoom out to within a small range of 1.0

    Ultimately I'd like to reproduce what some native apps do, where the image smoothly slides back to center as you approach scale=1.0. I don't have my head wrapper around the math for that right now, contributions welcome
    Chief Architect @ Jarv.us Innovations
    Co-captain @ Code for Philly

    Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.

    Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects: https://github.com/JarvusInnovations/sencha-hotfixes

  8. #18
    Sencha User
    Join Date
    Jul 2011
    Posts
    4
    Vote Rating
    0
    AdvDeveloper is on a distinguished road

      0  

    Default For reference

    For reference


    Thanks for the reply.
    For a very nice pinch-zoom implementation, including the math, you may want to take a look at iScroll 4. The guy got the zoom to bounce back (and forth) when the contents are too small or too big. I think this is a nice start for you...

    In any case, I'd be very happy to receive S2 soon. If I was at Sencha, I'd have probably pushed built-in pinch/zoom functionality in S2... This would just fix so much problems for the developers.

    /AD

  9. #19
    Sencha User armode's Avatar
    Join Date
    Nov 2011
    Location
    Germany / Darmstadt
    Posts
    64
    Vote Rating
    4
    armode is on a distinguished road

      0  

    Default


    Thanks for your reply and for this great fix!

    Can I just use the imageViewer without the pinchCarousel? I don't need it, because I want to show just one image in a panel.

  10. #20
    Sencha Premium Member
    Join Date
    Apr 2008
    Posts
    269
    Vote Rating
    31
    themightychris has a spectacular aura about themightychris has a spectacular aura about

      0  

    Default


    Yep, that's why I separated them =] Let me know if you need a better usage example
    Chief Architect @ Jarv.us Innovations
    Co-captain @ Code for Philly

    Jarvus builds and optimizes top-quality Sencha Touch and ExtJS apps for open-source projects and clients of all sizes.

    Don't waste time with bugs that have already been found and fixed by the community, compile our tried and tested hotfixes packages into all your projects: https://github.com/JarvusInnovations/sencha-hotfixes