Skip to content

Commit

Permalink
Fix seekPercentage with proper target object
Browse files Browse the repository at this point in the history
  • Loading branch information
RuZniki committed Dec 3, 2014
1 parent a37595c commit df5baaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/angular-swig.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ angular.module('docs', ['mediaPlayer'])
.run(function ($rootScope) {
// helper function to seek to a percentage
$rootScope.seekPercentage = function ($event) {
var percentage = ($event.offsetX / $event.target.offsetWidth);
var percentage = ($event.offsetX / $event.currentTarget.offsetWidth);
if (percentage <= 1) {
return percentage;
} else {
Expand Down

0 comments on commit df5baaf

Please sign in to comment.