Skip to content

Commit 33fe685

Browse files
authoredMay 10, 2024··
fix(timeline): reduce warning (#661)
1 parent 51b1990 commit 33fe685

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎packages/devtools/src/runtime/plugins/view/FrameBox.vue

+8-8
Original file line numberDiff line numberDiff line change
@@ -108,56 +108,56 @@ useEventListener(window, 'mouseleave', () => isResizing.value = false)
108108
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal"
109109
:style="{ top: 0 }"
110110
@mousedown.prevent="isResizing = { top: true }"
111-
@touchstart="() => isResizing = { top: true }"
111+
@touchstart.passive="() => isResizing = { top: true }"
112112
/>
113113
<div
114114
v-show="state.position !== 'bottom'"
115115
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal"
116116
:style="{ bottom: 0 }"
117117
@mousedown.prevent="() => isResizing = { bottom: true }"
118-
@touchstart="() => isResizing = { bottom: true }"
118+
@touchstart.passive="() => isResizing = { bottom: true }"
119119
/>
120120
<div
121121
v-show="state.position !== 'left'"
122122
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical"
123123
:style="{ left: 0 }"
124124
@mousedown.prevent="() => isResizing = { left: true }"
125-
@touchstart="() => isResizing = { left: true }"
125+
@touchstart.passive="() => isResizing = { left: true }"
126126
/>
127127
<div
128128
v-show="state.position !== 'right'"
129129
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical"
130130
:style="{ right: 0 }"
131131
@mousedown.prevent="() => isResizing = { right: true }"
132-
@touchstart="() => isResizing = { right: true }"
132+
@touchstart.passive="() => isResizing = { right: true }"
133133
/>
134134
<div
135135
v-show="state.position !== 'top' && state.position !== 'left'"
136136
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
137137
:style="{ top: 0, left: 0, cursor: 'nwse-resize' }"
138138
@mousedown.prevent="() => isResizing = { top: true, left: true }"
139-
@touchstart="() => isResizing = { top: true, left: true }"
139+
@touchstart.passive="() => isResizing = { top: true, left: true }"
140140
/>
141141
<div
142142
v-show="state.position !== 'top' && state.position !== 'right'"
143143
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
144144
:style="{ top: 0, right: 0, cursor: 'nesw-resize' }"
145145
@mousedown.prevent="() => isResizing = { top: true, right: true }"
146-
@touchstart="() => isResizing = { top: true, right: true }"
146+
@touchstart.passive="() => isResizing = { top: true, right: true }"
147147
/>
148148
<div
149149
v-show="state.position !== 'bottom' && state.position !== 'left'"
150150
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
151151
:style="{ bottom: 0, left: 0, cursor: 'nesw-resize' }"
152152
@mousedown.prevent="() => isResizing = { bottom: true, left: true }"
153-
@touchstart="() => isResizing = { bottom: true, left: true }"
153+
@touchstart.passive="() => isResizing = { bottom: true, left: true }"
154154
/>
155155
<div
156156
v-show="state.position !== 'bottom' && state.position !== 'right'"
157157
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
158158
:style="{ bottom: 0, right: 0, cursor: 'nwse-resize' }"
159159
@mousedown.prevent="() => isResizing = { bottom: true, right: true }"
160-
@touchstart="() => isResizing = { bottom: true, right: true }"
160+
@touchstart.passive="() => isResizing = { bottom: true, right: true }"
161161
/>
162162
</div>
163163
</template>

0 commit comments

Comments
 (0)
Please sign in to comment.