rt-sim-training-client/src/mixin/CancelMouseState.js

14 lines
423 B
JavaScript
Raw Normal View History

2019-12-31 14:32:04 +08:00
export default {
methods: {
mouseCancelState(selected) {
const device = this.$jlmap.getDeviceByCode(selected.code);
const instance = (device || {}).instance;
if (instance && instance.mouseEvent && instance.mouseEvent.mouseout) {
device['down'] = false;
instance.mouseEvent.mouseout(this.$jlmap.$zr.curEvent);
}
}
}
};