mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-29 15:35:15 -04:00
Fixed issue with progress scrubber hover not showing the right time when hovering over handle.
This commit is contained in:
parent
7c2982d3f1
commit
09e80120bf
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ module.exports = class LevelPlaybackView extends CocoView
|
||||||
|
|
||||||
onProgressHover: (e) ->
|
onProgressHover: (e) ->
|
||||||
timeRatio = @$progressScrubber.width() / @totalTime
|
timeRatio = @$progressScrubber.width() / @totalTime
|
||||||
offsetX = e.offsetX or e.clientX - $(e.target).offset().left
|
offsetX = e.clientX - $(e.target).closest('#timeProgress').offset().left
|
||||||
@newTime = offsetX / timeRatio
|
@newTime = offsetX / timeRatio
|
||||||
@updatePopupContent()
|
@updatePopupContent()
|
||||||
@timePopup?.onHover e
|
@timePopup?.onHover e
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue