mauricius / vue-draggable-resizable

Vue3 Component for draggable and resizable elements.
https://mauricius.github.io/vue-draggable-resizable/
MIT License
3.33k stars 559 forks source link

Why can I just click and drag it over? #378

Open xuepengdong opened 1 year ago

xuepengdong commented 1 year ago

Click on the dragged area to drag it over. Dragging without clicking does not work. Could you please ask the author why?

          <div v-if="questionInfo.eqType == 8" :style="'margin-top:20px;position: relative;height:'+questionInfo.eqOption.length*100+'px'" >
            <vue-draggable-resizable v-for="(eqOptionOne,eqOptionIndex) in questionInfo.eqOption" :key="eqOptionIndex"
                                     :x="questionInfo.cssSet.cssType==1?(eqOptionIndex%2)*400:0" :y="questionInfo.cssSet.cssType==1?parseInt(eqOptionIndex/2)*100:parseInt(eqOptionIndex)*100"
                                     :w="questionInfo.cssSet.cssType==1?400:600" :h='wtfH'
                                     :name="'drag_'+eqOptionIndex"
                                     @dragstop=" (left,top,that)=> onDragstop(left,top,that,eqOptionIndex)"
                                     :resizable="true"
            >