Have you searched the Docs and Knowledge base?
Principle Version: 5.8
macOS Version:
Sketch Version: NA
Description of what you need help with: Locking Drag
Steps to reproduce the behavior:
I have a scroll on a page and a drag. Both need to work. but the drag keeps sliding off the page. Can i lock it at a certain height?
I am looking for help with a slide and a drag in a model.
I have a background that slides. This works just fine.
The bottom sheet is set on a vertical drag. It can be dragged all the way off the page on the top or the bottom.
I would like to ‘lock’ the bottom sheet so it can’t be moved beyond the base.
Do you mind sharing the file or at least an animation so we can understand a bit better the situation? It’s a bit tricky to guess how your layers are positioned and what are you trying to achieve without it.
Without looking at it, I’d say using a scroll and a drag together might be tricky, but I’d need the project file to help you.
You can use the drivers to adjust the ‘bottom’ CenterY value as the drag go up, I just extended it very far so it keeps the position. Same thing for dragging it down, you can adjust the CenterY value again to avoid going under the minimum level.
You have done well, basically you need to add more keyframes in case the user keeps dragging up the panel and keep the CenterY position in a value that makes the panel be in the same place.