File tree Expand file tree Collapse file tree
dConnectDevicePlugin/dConnectDeviceMidi/demo/src/views Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ];
You can’t perform that action at this time.
0 commit comments