• hansjcotten

    (@hansjcotten)


    On Android panning through the panorama uses only the device orientation. On a tablet that is not optimal, a user wants to pan using touch/wipes or at least mouse emulation.

Viewing 1 replies (of 1 total)
  • Plugin Author Leonardo Giacone

    (@leopeo)

    Hi @hansjcotten,
    many thanks for posting your issue.

    Easy Panorama uses Paver Js as library to render the panoramic viewer.

    This library does not support the behaviour you are suggesting:

    Paver uses deviceorientation to access the gyroscope data from a device, if available.

    When deviceorientation event is available, Paver uses it to “pan” through the image, so the touch event is ignored.

    I personally agree with this choice.

    You can achieve this behaviour with few lines of CSS (no plugin need to be installed), as suggested on Paver webpage:

    .panorama {
    	height: 400px;
    	overflow-x: scroll;
    	overflow-y: hidden;
    	img {
    		height: 100%;
    	}
    }

    Please let me know if this works for you.
    Leonardo

Viewing 1 replies (of 1 total)
  • The topic ‘Add Android touch support?’ is closed to new replies.