Fix unintentional resizing of viewports

This commit is contained in:
Erik Ziegler 2016-08-10 16:13:09 +02:00
parent f7e888d1be
commit 31a9f09992
3 changed files with 10 additions and 13 deletions

View File

@ -1,11 +1,10 @@
Template.flexboxLayout.events({ Template.flexboxLayout.events({
'transitionend .sidebarMenu'() { 'transitionend .sidebarMenu'(event) {
handleResize(); if (!event.target.classList.contains('sidebarMenu')) {
}, return;
}
'transitionend .sidebar-option'(event) { handleResize();
// Prevent this event from bubbling
event.stopPropagation();
} }
}); });

View File

@ -1,10 +1,10 @@
Template.flexboxLayout.events({ Template.flexboxLayout.events({
'transitionend .sidebarMenu'(event, instance) { 'transitionend .sidebarMenu'(event) {
if (!event.target.classList.contains('sidebarMenu')) {
return;
}
handleResize(); handleResize();
},
'transitionend .sidebar-option'(event, instance) {
// Prevent this event from bubbling
event.stopPropagation();
} }
}); });

View File

@ -1,5 +1,3 @@
import { StudyImportStatus } from '../both/collections';
Meteor.publish('studyImportStatus', () => { Meteor.publish('studyImportStatus', () => {
return StudyImportStatus.find(); return StudyImportStatus.find();
}); });