Comments (6)
Unfortunately, CC will block scroll currently...
CC prevents wheel events, then scroll events will be blocked as a side effect.
here is the code:
camera-controls/src/CameraControls.ts
Lines 840 to 866 in cee0427
Maybe we could add a new option like releaseWheelOnEdges
to disable the event prevention for wheel events.
(should we consider touch events too...?)
(any idea for good naming for the new option...?)
from camera-controls.
Thank you, guys, for your suggestions.
The name releaseEventOnEdges
sounds to cover both wheel and touch events.
Let me use the name!
It may take time, but I will add features when I have time.
Probably on scrolling is something easier than on dragging
Yeah...actually I have no idea for detecting orbit limit...but oneday.
I will start with wheel control.
from camera-controls.
Hi,
Will this be released anytime soon ?
from camera-controls.
@yomotsu Is zooming with touch events done differently than scrolling the page with touch events? Just thinking... on desktop you zoom with the mouse wheel AND page scroll with the mouse wheel. But if on mobile zooming is done with two fingers and scrolling is performed with a different action, we might not need to include touch events for this new feature.
Some naming options...
- normalScrollOnZoomBounds
- scrollOnZoomBounds
- swapZoomToScrollOnZoomBounds
just a few ideas
from camera-controls.
@IDrumsey on mobile the scrolling is prevented by the camera orbit event, would be great if CC let the page scroll when the orbit reached its limit!
@yomotsu what do you think of an option like releaseEventOnEdges
available on those behaviours that can reach an edge?
Probably on scrolling is something easier than on dragging
from camera-controls.
@esnho, yeah. I forgot about orbiting constraints. Would make sense to start auto scrolling when the limits were reached.
Not familiar with the codebase, but maybe something like releaseEventOnEdges(eventTypes: [event type] = [Zoom, Orbit, ...]){}
from camera-controls.
Related Issues (20)
- Speed up setLookAt or lerpLookAt HOT 5
- Invalid "main" entry in v2.8.x HOT 10
- Add focus function HOT 7
- Error 'ThreeCameraControls.install is not a function' HOT 2
- Method to cancel ongoing transitions HOT 5
- Mouse wheel zoom doesn't work with pressed Shift on Mac HOT 1
- The automated release is failing 🚨 HOT 1
- Update three.js version to 162 HOT 2
- Not update in worker HOT 5
- Dolly to Cursor and focalOffset HOT 5
- I want to replace camera-controls with the default controls in my project, here is an example, how can I do it to be compatible correctly? HOT 2
- fitToBox on a plane: how to prevent plane to get perpendicular to view? HOT 1
- Dolly to cursor reaches limit HOT 4
- Dolly to cursor does not maintain steady speed
- Roll/tilt control HOT 1
- Can't zoom after switching between cameras HOT 10
- Cannot dispatch custom event HOT 4
- It would be nice to have setFov method with smooth transition
- Transition updateCameraUp HOT 1
- Control functions skip frames when frameloop = demand HOT 3
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 camera-controls.