bounds: "#quiz",
onDragParams: [{}],
onDrag: function() {
+ $(".zone-1,.zone-2").removeClass("notDrag")
$(this.target).addClass("isDragging").removeClass("isNext")
$this.offsetLeftItemDragged = $(this.target).offset().left
}
},
onRelease: function() {
+ //
+ $(".zone-1,.zone-2").addClass("notDrag")
+
//
$this.leaveZone()
},
leaveZone: function() {
- $(".zone-1,.zone-2").removeClass("active")
+ $(".zone-1,.zone-2").removeClass("active").removeClass("isDragging")
},
slapping: function(zone,target) {
height: auto
left: 50%
transform: translateX(-50%)
- padding: 10px 40px
+ padding: 18px 40px
border-radius: 8px
border-width: 2px
.text
+opacity(.8,color,$texts-color)
.slot
display: none
+
+ &.notDrag
+ .zone-content
+ border-color: transparent
+
&.zone-1
width: 100%
height: auto
<div class="container-screen none question-draganddrop" data-screen="q-{{$position}}">
- <div class="screen-image zone-1">
+ <div class="screen-image zone-1 notDrag">
<img src="{{$theme->draganddropArea1Image}}" />
<img class="mobile" src="{{$theme->draganddropArea1ImageMobile}}"/>
<div class="zone-content">
<button class="access move-card" aria-keyshortcuts="ARROWRIGHT"><span data-icon="arrow"></span></button>
</div>
</div>
- <div class="screen-image zone-2">
+ <div class="screen-image zone-2 notDrag">
<img src="{{$theme->draganddropArea2Image}}" />
<img class="mobile" src="{{$theme->draganddropArea2ImageMobile}}"/>
<div class="zone-content">