NYUMusEdLab / notio

Notio - A music theory learning React App that runs in the browser
https://nyumusedlab.github.io/notio/
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

When using drag & drop for video window, limit the trajectory upwards #249

Closed ceciliabjork closed 1 year ago

ceciliabjork commented 1 year ago

...so that the upper border video window does not get hidden because then the window gets stuck under the tabs ;)

saxjax commented 1 year ago

use the bounds = "body" "parent" {{top: bottom: left: right:}} https://www.npmjs.com/package/react-draggable#draggable-usage

image
saxjax commented 1 year ago

removed margin on Overlay set bounds to "parent"

saxjax commented 1 year ago

PR: https://github.com/NYUMusEdLab/notio/pull/274

solution: https://deploy-preview-274--notio-novia-fi.netlify.app