diff --git a/app/styles/play/level/loading.sass b/app/styles/play/level/loading.sass index 177334f72..9570497f3 100644 --- a/app/styles/play/level/loading.sass +++ b/app/styles/play/level/loading.sass @@ -22,7 +22,9 @@ position: absolute z-index: 20 $UNVEIL_TIME: 1.2s - pointer-events: none + + &.unveiled + pointer-events: none .loading-details position: absolute diff --git a/app/views/play/level/level_loading_view.coffee b/app/views/play/level/level_loading_view.coffee index 32da3377e..8035c5d14 100644 --- a/app/views/play/level/level_loading_view.coffee +++ b/app/views/play/level/level_loading_view.coffee @@ -8,7 +8,7 @@ module.exports = class LevelLoadingView extends View subscriptions: 'level-loader:progress-changed': 'onLevelLoaderProgressChanged' - + afterRender: -> @$el.find('.tip.rare').remove() if _.random(1, 10) < 9 tips = @$el.find('.tip').addClass('to-remove') @@ -34,6 +34,7 @@ module.exports = class LevelLoadingView extends View reallyUnveil: => return if @destroyed + @$el.addClass 'unveiled' loadingDetails = @$el.find('.loading-details') duration = parseFloat loadingDetails.css 'transition-duration' loadingDetails.css 'top', -loadingDetails.outerHeight(true)