Added touchstart to places where mousedown is called

This commit is contained in:
euvl
2017-08-23 10:14:01 +01:00
parent a4b04312f0
commit 426f6c4955
3 changed files with 20 additions and 4 deletions

9
dist/index.js vendored

File diff suppressed because one or more lines are too long

9
dist/ssr.index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -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"