Git Product home page Git Product logo

Comments (9)

grammesm avatar grammesm commented on August 26, 2024 1

FWIW I was able to fix this in my local copy.

in PLManager.kt

Update touchesMoved

    fun touchesMoved(touches: List<UITouch?>?, event: MotionEvent?) {
        val listenerExists = mListener != null
        if (listenerExists) mListener!!.onTouchesMoved(this, touches, event)
        if (this.isLocked || isValidForCameraAnimation || mIsValidForTransition || !isTouchInView(touches) || listenerExists && !mListener!!.onShouldMoveTouching(
                this,
                touches,
                event
            )
        ) return
        mTouchStatus = PLTouchStatus.PLTouchStatusMoved
        mStartPoint!!.setValues(mEndPoint) // <------- **** NEW LINE ****
        if (!executeDefaultAction(touches, PLTouchEventType.PLTouchEventTypeMoved)) mEndPoint!!.setValues(getLocationOfFirstTouch(touches))
        if (listenerExists) mListener!!.onDidMoveTouching(this, touches, event)
    }

This tells the camera to only move the difference between the current finger position and last finger position, rather than the entire distance between the current and original finger position

And then in the MainActivity.kt file setting the rotational sensitivity to max before setting the panorama

        panorama.camera.rotationSensitivity = 180f

Could put the first change behind some configuration of PLManager?

May want to up the max allowable sensitivity a bit, to give a little more than 1:1 sensitivity when moving the map around..

from panoramagl.

PhilippeTroller avatar PhilippeTroller commented on August 26, 2024

same problem.

from panoramagl.

stale avatar stale commented on August 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

from panoramagl.

stale avatar stale commented on August 26, 2024

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.

from panoramagl.

nachtien avatar nachtien commented on August 26, 2024

@hannesa2 Is there a solution to stopping it from scrolling continuously?

from panoramagl.

grammesm avatar grammesm commented on August 26, 2024

Looking at various panorama libraries and this one seems the easiest to use for cubic projection, but agree with others - trying to navigate with your finger is very confusing.. seems like a speed vector for movement based on the distance from your first tap, rather than just moving with the finger.

from panoramagl.

hannesa2 avatar hannesa2 commented on August 26, 2024

Nice, do you want to share your solution to the community with a pull request ?

from panoramagl.

grammesm avatar grammesm commented on August 26, 2024

@hannesa2 Let me tidy it up and I'll submit something

from panoramagl.

hannesa2 avatar hannesa2 commented on August 26, 2024

I tried to reproduce the miss function.
First, I use current master and I observed no miss function.

Second, I switched on acceleration
isAccelerometerEnabled = true
and I observed no miss function.

Please tell me, what I've to do, to see it

from panoramagl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.