Merge pull request #31 from KevinMidboe/fix/restrictive-background-scroll
Disable scroll on content behind popover movie view
This commit is contained in:
		| @@ -123,6 +123,10 @@ img{ | |||||||
|   height: auto; |   height: auto; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .no-scroll { | ||||||
|  |   overflow: hidden; | ||||||
|  | } | ||||||
|  |  | ||||||
| .wrapper{ | .wrapper{ | ||||||
|   position: relative; |   position: relative; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -32,9 +32,11 @@ export default { | |||||||
|   }, |   }, | ||||||
|   created(){ |   created(){ | ||||||
|     window.addEventListener('keyup', this.checkEventForEscapeKey) |     window.addEventListener('keyup', this.checkEventForEscapeKey) | ||||||
|  |     document.getElementsByTagName("body")[0].classList += " no-scroll"; | ||||||
|   }, |   }, | ||||||
|   beforeDestroy() { |   beforeDestroy() { | ||||||
|     window.removeEventListener('keyup', this.checkEventForEscapeKey) |     window.removeEventListener('keyup', this.checkEventForEscapeKey) | ||||||
|  |     document.getElementsByTagName("body")[0].classList.remove("no-scroll"); | ||||||
|   } |   } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user