Comments (9)
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.
same problem.
from panoramagl.
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.
Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.
from panoramagl.
@hannesa2 Is there a solution to stopping it from scrolling continuously?
from panoramagl.
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.
Nice, do you want to share your solution to the community with a pull request ?
from panoramagl.
@hannesa2 Let me tidy it up and I'll submit something
from panoramagl.
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)
- jetpack build error 1.9.0 version HOT 3
- HotSpot not work HOT 13
- Development support HOT 2
- Hotspot on Click HOT 2
- -
- -
- Mark Multiple Hotspot on an event HOT 2
- Panorama Not Moving HOT 1
- Load Image From URI / URL to Panorama HOT 1
- How to create Virtual Tours using multiple Panoramas/360 HOT 3
- [Feature] Add images overlay panorama view HOT 3
- HotSpot stretching deformation HOT 1
- Issue with hotspot when they are in a location different than 0 ,0 HOT 1
- Add a hotspot with event HOT 1
- Black screen instead of panorama HOT 3
- Not working 1.8 version HOT 1
- How to load image from a remote url HOT 6
- error java.lang.NullPointerException HOT 1
- Mandatory HIGH_SAMPLING_RATE_SENSORS special permission in Android 12 + HOT 5
- Out of memory error when click next/prev HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panoramagl.