Fixed zooming/scrolling on slides.

This commit is contained in:
Emanuel Schuetze 2016-01-08 21:31:58 +01:00
parent 9b78b5992b
commit de77cfc38c
7 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
<div ng-controller="SlideItemDetailCtrl" class="content">
<div ng-controller="SlideItemDetailCtrl" class="content scrollcontent">
<h1>
{{ item.title }}
<span translate>List of speakers</span>

View File

@ -1,4 +1,4 @@
<div ng-controller="SlideItemListCtrl" class="content">
<div ng-controller="SlideItemListCtrl" class="content scrollcontent">
<h1 translate>Agenda</h1>
<table class="tablelist">

View File

@ -1,4 +1,4 @@
<div ng-controller="SlideAssignmentCtrl" class="content">
<div ng-controller="SlideAssignmentCtrl" class="content scrollcontent">
<h1>{{ assignment.title }}</h1>
<div class="white-space-pre-line">{{ assignment.description }}</div>
</div>

View File

@ -60,6 +60,8 @@ body{
right: 40px;
z-index: -1;
line-height: normal;
}
.scrollcontent {
transition-property: margin, font-size;
transition-duration: 1s;
}

View File

@ -65,7 +65,7 @@ angular.module('OpenSlidesApp.core.projector', ['OpenSlidesApp.core'])
console.error("Error for slide " + element.name + ": " + element.error);
}
});
$scope.scroll = -10 * Projector.get(1).scroll;
$scope.scroll = -5 * Projector.get(1).scroll;
$scope.scale = 100 + 20 * Projector.get(1).scale;
});
});

View File

@ -1,4 +1,4 @@
<div ng-controller="SlideMotionCtrl" class="content">
<div ng-controller="SlideMotionCtrl" class="content scrollcontent">
<h1>{{ motion.getTitle() }}</h1>
<div class="white-space-pre-line">{{ motion.getText() }}</div>
</div>

View File

@ -1,3 +1,3 @@
<div ng-controller="SlideUserCtrl" class="content">
<div ng-controller="SlideUserCtrl" class="content scrollcontent">
<h1>{{ user.get_full_name() }}</h1>
</div>