mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
Fix draggable
This commit is contained in:
@@ -320,7 +320,7 @@ chrome.runtime.sendMessage({}, function(response) {
|
|||||||
function handleDrag(video, controller) {
|
function handleDrag(video, controller) {
|
||||||
const parentElement = controller.parentElement,
|
const parentElement = controller.parentElement,
|
||||||
boundRect = parentElement.getBoundingClientRect(),
|
boundRect = parentElement.getBoundingClientRect(),
|
||||||
shadowController = controller.shadowRoot.querySelector('#controller'),
|
shadowController = controller.querySelector('#controller'),
|
||||||
drag = shadowController.querySelector('.draggable'),
|
drag = shadowController.querySelector('.draggable'),
|
||||||
offsetLeft = boundRect.left + drag.offsetLeft + drag.offsetWidth,
|
offsetLeft = boundRect.left + drag.offsetLeft + drag.offsetWidth,
|
||||||
offsetTop = boundRect.top + drag.offsetTop + drag.offsetHeight;
|
offsetTop = boundRect.top + drag.offsetTop + drag.offsetHeight;
|
||||||
|
@@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
.vsc-controller #controller.dragging {
|
.vsc-controller #controller.dragging {
|
||||||
cursor: -webkit-grabbing;
|
cursor: -webkit-grabbing;
|
||||||
|
cursor: -moz-grabbing;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,10 +49,12 @@
|
|||||||
|
|
||||||
.vsc-controller .draggable {
|
.vsc-controller .draggable {
|
||||||
cursor: -webkit-grab;
|
cursor: -webkit-grab;
|
||||||
|
cursor: -moz-grab;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vsc-controller .draggable:active {
|
.vsc-controller .draggable:active {
|
||||||
cursor: -webkit-grabbing;
|
cursor: -webkit-grabbing;
|
||||||
|
cursor: -moz-grabbing;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vsc-controller button {
|
.vsc-controller button {
|
||||||
|
Reference in New Issue
Block a user