mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Merge pull request #73 from euvl/mobile-touch-fix
Added touchstart to places where mousedown is called
This commit is contained in:
9
dist/index.js
vendored
9
dist/index.js
vendored
File diff suppressed because one or more lines are too long
9
dist/ssr.index.js
vendored
9
dist/ssr.index.js
vendored
File diff suppressed because one or more lines are too long
@@ -5,7 +5,8 @@
|
|||||||
:class="overlayClass"
|
:class="overlayClass"
|
||||||
:aria-expanded="visible.toString()"
|
:aria-expanded="visible.toString()"
|
||||||
:data-modal="name"
|
:data-modal="name"
|
||||||
@mousedown.stop="onBackgroundClick">
|
@mousedown.stop="onBackgroundClick"
|
||||||
|
@touchstart.stop="onBackgroundClick">
|
||||||
<div class="v--modal-top-right">
|
<div class="v--modal-top-right">
|
||||||
<slot name="top-right"/>
|
<slot name="top-right"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -14,7 +15,8 @@
|
|||||||
ref="modal"
|
ref="modal"
|
||||||
:class="modalClass"
|
:class="modalClass"
|
||||||
:style="modalStyle"
|
:style="modalStyle"
|
||||||
@mousedown.stop>
|
@mousedown.stop
|
||||||
|
@touchstart.stop>
|
||||||
<slot/>
|
<slot/>
|
||||||
<resizer v-if="resizable && !isAutoHeight"
|
<resizer v-if="resizable && !isAutoHeight"
|
||||||
:min-width="minWidth"
|
:min-width="minWidth"
|
||||||
|
|||||||
Reference in New Issue
Block a user