editor draggin cursor
This commit is contained in:
parent
60bd47465d
commit
c3ce61a39d
3 changed files with 9 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -216,6 +216,7 @@ var editObject = function(container, data, refresh){
|
|||
|
||||
if (data.hasOwnProperty('top')) {
|
||||
container.draggable({
|
||||
cursor:'-webkit-grabbing',
|
||||
stop: function( event, ui ) {
|
||||
event.preventDefault()
|
||||
data.top = (ui.helper.position().top + container.parent().scrollTop())/PXSCALE
|
||||
|
|
|
|||
|
|
@ -231,7 +231,6 @@
|
|||
top: 5rem;
|
||||
left: 5rem;
|
||||
z-index: 100000;
|
||||
cursor: -webkit-grab;
|
||||
height:20rem;
|
||||
width: 20rem;
|
||||
display: flex;
|
||||
|
|
@ -241,9 +240,6 @@
|
|||
background: $color-accent;
|
||||
box-shadow: 0 0 4rem 0 $color-bg;
|
||||
|
||||
&:active {
|
||||
cursor:-webkit-grabbing
|
||||
}
|
||||
&:before {
|
||||
content:"\f0b2";
|
||||
font-family: FontAwesome;
|
||||
|
|
@ -251,3 +247,10 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
.ui-draggable-handle {
|
||||
cursor: -webkit-grab;
|
||||
&:active {
|
||||
cursor:-webkit-grabbing;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue