Skip to content

Commit dd73e30

Browse files
committed
Helio ブラウザで PAD の ON/OFF イベントが来ない不具合を修正。
1 parent f1fbb63 commit dd73e30

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

dConnectDevicePlugin/dConnectDeviceMidi/demo/src/views/ControllerPage.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export default {
8787
8888
data: () => ({
8989
pads: [],
90-
sliders: []
90+
sliders: [],
91+
isHelio: false
9192
}),
9293
9394
computed: {
@@ -127,7 +128,7 @@ export default {
127128
128129
onMouse: function(pad, on) {
129130
console.log('onMouse: pad.id = ' + pad.id + ", on = " + on);
130-
if (!this.hasTouchEvent) {
131+
if (!this.hasTouchEvent || this.isHelio) {
131132
this.sendPadMessage(pad, on);
132133
}
133134
},
@@ -189,6 +190,11 @@ export default {
189190
mounted: function() {
190191
console.log('mounted: ', this.$route.query);
191192
193+
let userAgent = navigator.userAgent;
194+
if (userAgent) {
195+
this.isHelio = userAgent.toLowerCase().includes('helio/');
196+
}
197+
192198
let query = this.$route.query;
193199
let padCount = query['pad_count'];
194200
let padProfile = query['pad_profile'];

0 commit comments

Comments
 (0)