mayakraft / Panorama

Spherical panorama view, iOS
MIT License
649 stars 135 forks source link

touch pan orientation #4

Closed mayakraft closed 10 years ago

mayakraft commented 10 years ago

if deviceOrient is disabled, user should be able to pan around the scene with touches

mayakraft commented 10 years ago

implemented, but let's explore decelerating in place of abrupt stops.

gperessin commented 10 years ago

it would be great to be able to pan around even when the deviceOrient is enabled.

mayakraft commented 10 years ago

gperessin, i'm still thinking on this. a problem i'm see right now is if both are enabled, panning will un-align the real and virtual horizons, and i haven't been able to imagine an elegant way to re-align them (if the user wanted, which makes sense that they might) without introducing a UI layer

mayakraft commented 10 years ago

i've been thinking about this some more, i might try this: if the device orientation and panning are both enabled: panning is restricted to only around the Y axis, (spinning like a top), so that the horizon stays level

notfair commented 10 years ago

or maybe when panning, deviceOrientation will be disable, only enable when cancel touch?

mayakraft commented 10 years ago

b379e2eb71b4cf988443349c0a0ddeca367ec4a6 it's now possible to activate both simultaneously