Angular Miniscroll is a fork of little library for touch and desktop scrollbar application - Miniscroll-JS. if you found bugs send it to [email protected] or send to issue page
version 0.1
<script src="miniscroll.js"></script>
<div class="scroller"> // text here </div>
.scroller { width: 400px; height: 300px; overflow: hidden; }
new Miniscroll(".scroller", { axis: "y", size: 10, sizethumb: "auto", thumbColor: "#0e5066", trackerColor: "#1a8bb2" });
.miniscroll-thumb { background-color: #0e5066 !important; } .miniscroll-tracker { background-color: #1a8bb2 !important; }
#miniscroll-target .miniscroll-thumb { background-color: #0e5066 !important; } #miniscroll-target .miniscroll-tracker { background-color: #1a8bb2 !important; }
*axis:
axle of scrollbar ex: "y" ou "x"
size:
the width of scrollbar ex: 10
sizethumb:
o tamanho do thumb ex: 100 ou "auto"
thumbColor:
the size of thumb ex: "#0e5066"
trackerColor:
color of fund of tracker ex: "#1a8bb2"
scrollbarSize:
size of scrollbar, you can set a size fix to scrollbar it ex: 300 this had left scrollbar with the height of 300px
isKeyEvent:
Add arrow key event, by default is true
turnOffWheel:
toggle on or off a mousewheel event, by default turnOffWheel is true
Copyright (c)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.