Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@vkdesktop/vue-scrolly
Advanced tools
Посмотрите на демо версию.
wheel
и touchmove
добавляется параметр passive: true
, что заметно повышает производительность.Alt
.npm i @vkdesktop/vue-scrolly
Для начала, импортируйте vue-scrolly
в компонент:
import Scrolly from '@vkdesktop/vue-scrolly';
export default {
components: {
Scrolly
},
// Ваш код...
}
Затем, оберните нужный контент таким образом:
<Scrolly class="custom-scrolly-wrap" vclass="content-wrap">
<!-- Ваш контент... -->
</Scrolly>
В самой верстке это будет выглядеть примерно так:
<div tabindex="1" class="custom-scrolly-wrap scrolly">
<div class="scrolly-viewport content-wrap">
<!-- Ваш контент... -->
</div>
<div class="scrolly-bar axis-y" style="..."></div>
<div class="scrolly-bar axis-x" style="..."></div>
</div>
Название | Описание | Тип | По умолчанию |
---|---|---|---|
vclass | Класс для врапа вашего контента | Vue class | "" |
Событие | Описание |
---|---|
scroll | Вызывается при изменении позиции скролла |
FAQs
Кастомный скроллбар для Vue.js
We found that @vkdesktop/vue-scrolly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.