s2e19 stop and propagate
This commit is contained in:
parent
04732ca839
commit
0de151a58b
3
app.js
3
app.js
@ -12,6 +12,9 @@ var app = new Vue({
|
|||||||
updateCoordinates(event){
|
updateCoordinates(event){
|
||||||
this.x = event.clientX;
|
this.x = event.clientX;
|
||||||
this.y = event.clientY;
|
this.y = event.clientY;
|
||||||
|
},
|
||||||
|
dummy(event){
|
||||||
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -9,7 +9,9 @@
|
|||||||
<div id='app'>
|
<div id='app'>
|
||||||
<button @click="increase(2, $event)">Click Me</button>
|
<button @click="increase(2, $event)">Click Me</button>
|
||||||
<p>{{ counter }}</p>
|
<p>{{ counter }}</p>
|
||||||
<p v-on:mousemove="updateCoordinates">Coordinates {{x}} {{y}} </p>
|
<p v-on:mousemove="updateCoordinates">Coordinates {{x}}, {{y}}
|
||||||
|
<span v-on:mousemove.stop.prevent=""> DEAD SPOT</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="app.js" charset="utf-8"></script>
|
<script src="app.js" charset="utf-8"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user