Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsamal committed Jan 16, 2019
1 parent ba7f44e commit a70d5d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ body {
cursor: pointer;
overflow: hidden;
position: absolute;
bottom: 0;
}

.tracker .start, .tracker .end {
Expand Down
6 changes: 5 additions & 1 deletion sampler/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ angular.module('mainApp').controller('MainLineCtrl', ($rootScope, $scope, $http,
trackCopy.segments.push({
start: seg.start,
end: seg.end,
offset: seg.offset
offset: seg.offset,
amp: seg.amp
});
});

Expand Down Expand Up @@ -389,6 +390,9 @@ angular.module('mainApp').controller('MainLineCtrl', ($rootScope, $scope, $http,
if (resized) {
const leftChange = +(((trackerElem[0].offsetLeft - seg.left) / secLength).toFixed(2));
seg.start += leftChange;
if (seg.start < 0) {
seg.start = 0;
}
console.log('Left change : ', leftChange);

if (!leftChange) {
Expand Down

0 comments on commit a70d5d7

Please sign in to comment.