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({
'transitionend .sidebarMenu'() {
handleResize();
},
'transitionend .sidebarMenu'(event) {
if (!event.target.classList.contains('sidebarMenu')) {
return;
}
'transitionend .sidebar-option'(event) {
// Prevent this event from bubbling
event.stopPropagation();
handleResize();
}
});

View File

@ -1,10 +1,10 @@
Template.flexboxLayout.events({
'transitionend .sidebarMenu'(event, instance) {
'transitionend .sidebarMenu'(event) {
if (!event.target.classList.contains('sidebarMenu')) {
return;
}
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', () => {
return StudyImportStatus.find();
});