Skip to content

Commit

Permalink
Prevent waveform vertical scrolling in chrome (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbunker authored and katspaugh committed Apr 4, 2017
1 parent 9942a23 commit 6699076
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/drawer.multicanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ WaveSurfer.util.extend(WaveSurfer.Drawer.MultiCanvas, {
zIndex: 1,
left: leftOffset + 'px',
top: 0,
bottom: 0
bottom: 0,
height: '100%'
})
);
entry.waveCtx = entry.wave.getContext('2d');
Expand All @@ -86,7 +87,8 @@ WaveSurfer.util.extend(WaveSurfer.Drawer.MultiCanvas, {
position: 'absolute',
left: leftOffset + 'px',
top: 0,
bottom: 0
bottom: 0,
height: '100%'
})
);
entry.progressCtx = entry.progress.getContext('2d');
Expand Down

0 comments on commit 6699076

Please sign in to comment.