CyberNika / v-contextmenu

🖱 ContextMenu based on Vue 3 & Vue 2
https://cybernika.github.io/v-contextmenu/
MIT License
918 stars 112 forks source link

Firefox complains about mozPressure #110

Open crystalfp opened 2 years ago

crystalfp commented 2 years ago

Thanks for this useful plugin! Hope to being able soon to read the documentation in English.

Running my application that defines a contextmenu over a list of <div> (see below) inside Firefox gives the following warning: MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead. Everything works as expected, I want only to make developers aware of this. (Vue 3 on Windows)

Here is my template:

<template>
 <v-contextmenu ref="contextmenu">
    <v-contextmenu-item @click="showContent">Menu Item 1</v-contextmenu-item>
    <v-contextmenu-item>Menu Item 2</v-contextmenu-item>
    <v-contextmenu-item>Menu Item 3</v-contextmenu-item>
  </v-contextmenu>

  <div class="doc-list" v-contextmenu:contextmenu>
    <div class="doc-list-item" v-for="item in store.state.documentWorklist" :key="item.id">{{ item.title }}</div>
  </div>
</template>