File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export default {
108
108
if (this .roomId ) {
109
109
const room = newVal .find (r => r .roomId === this .roomId )
110
110
this .fetchRoom ({ room })
111
- } else {
111
+ } else if ( ! this . isMobile ) {
112
112
this .fetchRoom ({ room: this .orderedRooms [0 ] })
113
113
}
114
114
}
@@ -144,7 +144,9 @@ export default {
144
144
145
145
mounted () {
146
146
this .updateResponsive ()
147
- window .addEventListener (' resize' , () => this .updateResponsive ())
147
+ window .addEventListener (' resize' , ev => {
148
+ if (ev .isTrusted ) this .updateResponsive ()
149
+ })
148
150
},
149
151
150
152
computed: {
@@ -180,7 +182,6 @@ export default {
180
182
methods: {
181
183
updateResponsive () {
182
184
this .isMobile = window .innerWidth < this .responsiveBreakpoint
183
- this .showRoomsList = ! this .isMobile
184
185
},
185
186
toggleRoomsList () {
186
187
this .showRoomsList = ! this .showRoomsList
You can’t perform that action at this time.
0 commit comments