terrymun / paver

Paver, a panorama/image viewer replicating the effect seen in Facebook Pages app
MIT License
123 stars 38 forks source link

Ignore/disable device orientation (on android) with a config and use wipes/touch? #18

Open HansOtten opened 7 years ago

HansOtten commented 7 years ago

On an (Android) tablet it may be inconvenient to use device orientation when the tablet is on the table. Is it possible to have a configuration parameter to use touch (on Android) and ignore the availability of device orientation?

terrymun commented 7 years ago

You can set the tilt parameter to false when initialising. To determine whether the user is using Android or otherwise is out of the scope of this question—there is probably no easy way to tell what OS the user is on, since the UA can be easily forged.

HansOtten commented 7 years ago

Thank you for the prompt answer. When setting the tilt parameter to false at init the device orientation indeed is not used. Alas the result is that the panorama is displayed full without scrolling/panning on the tablet. No view window, no touch/wipe.

terrymun commented 7 years ago

Alright, I'll have a look at it soon. A bit busy lately, so don't expect a fix until a few weeks from now :)

HansOtten commented 7 years ago

Thank you! That is good news!

Hans

From: Terry Mun [mailto:notifications@github.com] Sent: vrijdag 24 februari 2017 11:52 To: terrymun/paver paver@noreply.github.com Cc: HansOtten h.otten@hansotten.com; Author author@noreply.github.com Subject: Re: [terrymun/paver] Ignore/disable device orientation (on android) with a config and use wipes/touch? (#18)

Alright, I'll have a look at it soon. A bit busy lately, so don't expect a fix until a few weeks from now :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/terrymun/paver/issues/18#issuecomment-282263035 , or mute the thread https://github.com/notifications/unsubscribe-auth/AYs4D9rRW-cKZlEfmSqFJ25dfu2Fk4ivks5rfrZXgaJpZM4MJn7m . https://github.com/notifications/beacon/AYs4DwQrw69ZKTcAerlB_gX60_q1LnrYks5rfrZXgaJpZM4MJn7m.gif