scroll-lock directive for vue.js(2.0)
NPM(recommend)
npm install vue-dt-scroll-lock --save
import Vue from 'vue';
import vueScrollLock from 'vue-dt-scroll-lock';
Vue use(vueScrollLock);
Directive v-scroll-lock then can be used in any of your Component.
<template>
<div v-scroll-lock>
<p>test</p>
</div>
</template>
Support for apple's Safari browser is not yet clear
MIT