Giter VIP home page Giter VIP logo

jquery.nicescroll's People

Contributors

abhi05b avatar alexandr-bbm avatar arzafran avatar barraq avatar bnadeau avatar brandonaaron avatar duckzland avatar dylanpyle avatar elvisqi avatar eocanha avatar f-dg avatar gabifija avatar gianlucaguarini avatar gustavnikolaj avatar huang-x-h avatar humbledeer avatar inuyaksa avatar kkirsche avatar levinalex avatar nkovacs avatar patrickwynne avatar philleepflorence avatar quantumpacket avatar rafasashi avatar silversonicaxel avatar tolc avatar ulearj3 avatar vsn4ik avatar yukulele avatar zcourts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.nicescroll's Issues

Scrolling a Fixed Position scrollable

I just tried to scroll the content inside a container that is using Fixed CSS positioning. it works well but when the page is scrolled in general, the scrollbar is not sticking to the fixed positioned container as it should. It seems to be absolutely positioned and is scrolling with the document.

Can the scrollbar use fixed positioning when the container is using fixed positioning?

Reset bar and content when content changes. How?

Hey, good plugin that of yours. But I'm trying to use it for a site I've just finished, and I was using another scrollbar, but my client insisted in using the iPad and scrolling with the finger. Anyway, I have a section where there are 3 columns. Each column is injected with content via Ajax, so when the content is changed (via sidebar menu), its internal size changes.
So, as the page doesn't reload, I had to reset the bar somehow, and I've made it using:
$(".scrollbar").getNiceScroll().remove()
$(".scrollbar").niceScroll({MY_PARAMS}); //MY_PARAMS are no important. Just to make code clearer.
I tried with "resize()" but it didn't work.

But then, when I scroll one column and I change contents, the content is already scrolled, so I thinks it'd be great to have a method to reset the position, something like $(".scrollbar").getNiceScroll().scrollTop(). I dived into your code but I'm afraid I wasn't able to find something similar, and I guess I'll have to resest positions making "jquery black magic" instead using some method. Am I wrong?

nicescroll in combination with 100% height and width

Thanks for you wonderful plugin.

I'm trying to create a page with 2 div's next to each other that fill the entire page (so each div has a width of 50% and a height of 100%). Within each of these div's the content should be scrollable, so the scrollable area is 100%x100%, however this seems to give problems for this plugin.

Any suggestions on how to fix this?

Draggable parent

If parent was moved scroll stay on fixed position, i added this changes

this.showCursor = function(py) {
this.updateScrollBar();

Scrollbar not update after change content dynamic

If I try to change inside content of the DIV dynamic. After that, I cannot scroll or do something any more with th scrollbar. Is there nay way to update scrollbar like the first time?

Thanks a lot.

all links will broken

Hi,

I like the script so much.
Unfortunately it breaks all other links on the page when the scrollable div has moved.

As long you move the div only with the mouse wheel, everything is fine.
After draging the div with the mouse pointer all links on this page are broken.

Please try it by your self.

http://devel3.mysoftmusic.com/tv/26-minutes-meditation

Tap on Ipad disabled

Hi your scroll looks great and solves my ipad two finger scroll problem. but it doesn't seem to work in conjunction with
jquery.ui.touch.js which we are using to convert tap on ipad to a right click.

Any ideas how we could haver both capabilities

Thanks

Finbar

Blue Boxes blick on window resize in Chrome when nicescroll is added to the page

Hi,
i see a strange effect when i resize/select a window in chrome 17.0.963.83 m on Win 7, with page loaded that uses nicescroll. During resize on the top and right side blue boxes blink. This effect is even present on your example page
http://areaaperta.com/nicescroll/demo.html if you quickly resize back and forth, but is even more visible when the page is more complex and needs more time to rerender.
This is somehow caused by the code that happens during this.onResize = function(e,page) {... call. I just tried commenting out everything there and blue boxes do not appear , nice scroll is of course not properly working then too :)
This effect does not appear in firefox or ie. Is this something known? Any workarounds?

Cant select form elements

Im not able to select form elements if touchbehavior is set to true.

Is this usual behavior?

thanks.

Does it have to be document ready?

On your site it says in capital letters that this has to ALWAYS be fired on document ready. I want to use it with jQuery mobile so I want to use pageinit- is that possible?

Also does this mean you cannot call the scroll bars on elements loaded with ajax?

Browser Zoom

Browser zoom causes hidden scrollbars to become visible. The results seem to occur across all modern browsers.

Removing nicescroll from element

I ran into some issues while trying to implement horizontally sliding navigation. That means there are side-by-side divs where only one is visible at the time and each one of them is scrollable using Nicescroll.

But when a div slides off the visible area, its scroll track still stays in the place.

I found nicescroll.remove() method, but it doesn't seem to do the job.
I even tried basic scenario where I initialized the nicescroll on an element and then removed it, but the track still stayed in the DOM and visible.

Could this be a mistake in my code? Is remove even supposed to be called from outside?
And most importantly - is there a way to completely remove all additional elements, bindings and all from an element?

The Dialog resizing of jQuery Ui can not work with jQuery.nicescroll.js.

  1. Html include jQuery.js;jQuery.UI.js;jQuery.nicescroll.js.
  2. Created a Dialog by jQuery.UI.
  3. The Dialog can not to resize.

-------------Javescript--------------------------
$("

").appendTo("body").dialog().html("test");
//the dialog can not to resize.

-------------Versions----------------------------
jQuery.js v1.7.1
jQuery.UI.js v1.9 Milestone 6 – Spinner 2
jQuery.nicescroll.js v2.8

-------------Log from Chrome-----------------
Uncaught TypeError: Cannot read property 'nodeName' of undefined
f.extend.acceptDatajquery.min.js:2
f.extend.datajquery.min.js:2
jQuery.fn.scrollTopjQuery.nicescroll.js:1411
a.widget._mouseStartjquery-ui.min.js:92
a.widget.a.(anonymous function).(anonymous function).a.widget.extend.namespacejquery-ui.min.js:19
a.widget._mouseMovejquery-ui.min.js:33
a.widget.a.(anonymous function).(anonymous function).a.widget.extend.namespacejquery-ui.min.js:19
a.widget._mouseDown._mouseMoveDelegatejquery-ui.min.js:32
f.event.dispatchjquery.min.js:3
f.event.add.h.handle.ijquery.min.js:3

touchbehavior:true (image) link issue in Chrome 20.0.1132.47

Hi,

I got a problem that is similar as: #29

but the problem now is that it's only not working well in Chrome I found so far.

here's an example: http://www.areaaperta.com/nicescroll/dev/issue29.html

links in the above page are not working are "HPIJS", "open-source driver", but "supported printer" is working. when I say not working, I mean I have to double click on a such link, the link then works.

it seems the pure links are working well but not those ones with extra attributes including this structure a img /a

hope this can be fixed soon.

Thanks!

dom exception with jquery.1.7.x

Hello

The bug is very nasty, appears only in Chrome from what I can tell, so there it is :

  • chrome latest version
  • jquery 1.7.1 or 1.7.2
  • latest version of nicescroll
  • using $("html").niceScroll(); creates a Dom exception syntax error that freezes the page

Works even in the nicescroll downloadable demo, if jquery is updated.

I think (not sure) the trigger is the line
" self.autohidedom.stop().animate({opacity:self.opt.cursoropacitymin});" from onResize function

scroll to top

Hi,

I'm really loving your plugin, but I have a question. The scrollbar works perfectly in iframes, but when you click a link on the page, the scrollbar preserves its location even on the new page. I need it to scroll to the top, but I can't figure out how to do it.

Any help would be greatly appreciated.

Yvonne

Bug when using jquery UI sortable along with nicescroll in IE7 and IE8

This page as a bare implementation of jquery UI drag and drop panels.
http://ericcoffman.net/panels/working.html

This is the same page with nicescroll added.
http://ericcoffman.net/panels/iebug.html

The bug happens when nicescroll is added. Without nicescroll the panels in IE7 and 8 begin dragging on the handle as expected. When nicescroll is added the drag panel drops 50 pixels or so. The more panels you have the more pronounced it gets.

Here is a video of the problem on the basic layout using IE 8
http://screencast.com/t/cntQ4pf5yS

Here is IE9 toggling to compatibility mode on a more complex layout. As you can see drag and drop is very hard in IE 7/8 mode when nicescroll added.
http://screencast.com/t/7uVyUFdKWk

Borders on scroller do not go away when .resize is called.

i am calling this line when slide down events happen.
$('.ContentScroll').getNiceScroll().resize().show();

I am seeing divs with scrollers applied that do not have height still show the scroller border resulting in small white dots appearing on hover.
http://screencast.com/t/mF27fKgzftN

This one is a bit harder to demonstrate but I think this video will help. If not I will be glad to make a public mockup of the issue.

won't initialize on a "display:none" element

i got various divs loaded, but i only display one on my page, the others have a display:none attribute. the scrollbar displays fine on the initial div, but not when i show the others, looks like it doesn't get initialized.

Strange scrolling behaviour

I'm experiencing strange scrolling behavior when I use the plugin. Most of the time it keeps sticking at the bottom of the page, or on the top. Also in the fullscreen view this issue appears.

Any suggestions?

re-sizing browser window does not re-position scrollbar

Hi, first of all this is a really neat plugin and was exactly what I was looking for... thank you!

The issue I'm having is occurring whenever I resize the browser window (any browser window, have tried IE, FF, Chrome).

The scrollbar remains in the same place it was positioned on page load, regardless of whether the element it is scrolling has been resized or moved with the window.

Try the demo (http://areaaperta.com/nicescroll/demo.html) on any browser and change the width of the browser window and you'll see what I mean.

Relocate when apply css3 zoom feature

When i resize some div with zoom feature of CSS (style="zoom: 60%"), scroll keep in some strange positions. How I can "resize", "relocate" or "refresh" the scrollbar?

Thanks.

scrollbars go over text sometimes

The scrollbars go over the text sometimes. I'm using the latest Google Chrome. I guess the problem is the text isn't always made smaller (in width). I've set a timeout of 150ms on the nicescroll. It helps a bit, but not always.

Problem scrolling animation to DIV in same page

Hi inuyaksa,

I really love your plugin. I use it because I have animations that are based on the scroll speed and position of the user, your plugin makes those animtions smooth also, just great!

1 problem. I had a navigation with buttons, clicking on the buttons it would animate you up or down on the page to the right DIV. Combined with your plugin I can't get both seem to work. Is there a solution? Thanks in advance!

Regards,

Tim

touchbehavior:true breaks links on page

Hi,

When you set touchbehavior:true and try and scroll, the scrolling works fine but for some odd reason it breaks all other links on that home page. Mostly all the HREF links or menus you may have on your page. So if you scroll down with touchbehavour:true and then go and try and click on a HREF link it won't work.

As soon as you remove or set touchbehavior:false you can scroll using the scrollbar or mouse wheel and the links all work fine then..

Any fix to this?

Thanks.

mousescrollstep problem

Hi, i have some issue with mousescrollstep, i may have misunderstood but this property should set the scrollstep of the scroll, mousewheel too so if i scroll down i could be able to scroll by 32px for example...but setting it like this

$("#squares").niceScroll({cursoropacitymin : 0, cursorwidth:"10px",cursorborderradius : "0px",cursorborder :"none",cursorcolor:"#ccc",boxzoom :true,mousescrollstep:"32px"});

makes me unable to scroll using mousewheel. How can i solve this? i need the scrollstep of 32px since i need to set squares inside a div which are 32px tall

Out of range tabindex IE9 in 7 modus

Following line (464 in jquery.nicescroll.js) gives an out of range error in IE9 in 7 modus using jquery 1.7

if (!self.win.attr("tabindex")) self.win.attr({"tabindex":(new Date()).getTime()});

Maybe (new Date()).getTime()}) isn't a good way to generate a tabindex.

Resizing

This doesn't work well with resizing, or when element changes width.

Wish this was fixed, launching a massive site in 4 hours and I just noticed it :(

touchbehavior on Iframe with "external" src ?

I was trying to embed another website ex:- http://www.example.com in src and put touchbehaviour to be "true". But then i loss the scrollbar and touchbehavior never work.

But if I switch back to the demo putting "iframe/blablabla.html" in src . Its working fine.

So any solution to this ?

Feature request: add class attribute to every created scroll

First of all thank you for this wonderful jQuery plugin.
I'm missing only one feature in it. Every time we call the niceScroll() we create an <div/> with unique ID at the end of <body/> it would be great if every created <div/> had a shared class, to gain the simple ability to select them all in CSS styles or JS scripts.
I'm hiding about 10-14 scrolls simultaneously and it's rather inconvenient to do it by using getNiceScroll() method.

Thanks, veritas

Nice scrolling is not working with jquery accordion

Hello,
I have a div with a fix height: 150px. Inside this div I have a JQuery accordion. At the beginning the accordion fits on the div so I don’t need the scroll but when I open a node the accordion grows and when using nice scrolling the scroll is not appearing…
I’ve tried to recall niceScroll when the accordion changes but nothing…

accordion.accordion({
collapsible: true,
autoHeight: false,
navigation: true,
changestart: function (event, ui) {
$('#notifCont').niceScroll({
cursorcolor: '#492682',
cursoropacitymin: '0.5'
});
}
});

Do you have any idea?

Thanks a lot for your time.

Kr, Jose

Border on click.

Hi,

First thanks for script, but now, i see some problems with firefox and chrome (working fine at firefox), when i click in container of nicescrool at chrome, the container showme one orange border.

Do you know anythink about it?

Thanks

Content not scrolling to top

I have setup nicescroll and all is working except when the content changes dynamically.

The content div re-sizes the scrollbar changes size but the new content is not reset to the top it stays in the same position I had the previous content scrolled to.

Structure;

I am using .getNiceScroll().resize();

Please help!

Chrome & IE9 border focus

Hi i noticed that with IE9 and Chrome 16.0.912.63 when focus the "nicescrolled" area is aplied a border "yellow" ring

in chrome the useragent.css has

:focus { outline: auto 5px -webkit-focus-ring-color }

so it can be fixed using in our website stylesheet

:focus { outline: none }

Maybe in a new version can have this option to be configured or removed

Very nice script and have a happy new year!

Hotkeys and mouse scroll wheel dissabled

As the title say... when the mouse is over the "nicedscroll area" and the content do not overflow, the hotkeys and the mouse scroll wheel does not work.

You have to mouseout the area.

Is there a way to solve this issue?

Thanks!

IE Sniffing

this.isie = (document.all && !document.opera); is an utterly hideous sniff.

Not only does document.opera not exist in Opera, but your current sniff will return the document.all HTMLCollection if it exists. I don't think you realize how costly that is. That's every single element node in the DOM. On a large site, this is murder.

You're looking for window.opera. Even then, that's a proprietary property that could be removed at any time. It's fallacious to rely on it.

Thirdly, (document.all && !document.opera) will return undefined rather than a boolean if document.all or document.opera doesn't exist. You would want implicit boolean conversion via the !! technique or explicit conversion via the Boolean constructor.

Please do your homework on the DOM and realize that object inferences such as these are monumentally stupid.

Here's a start:

  1. http://www.fortybelow.ca/hosted/comp-lang-javascript/faq/notes/detect-browser/
  2. http://peter.michaux.ca/articles/feature-detection-state-of-the-art-browser-scripting

grease.nicescroll problems

Seems like there is outdated version. Could you update the script?
Because I'm having problems with two sites, which are showing different symptoms. Twitter seems to be completely broken, but www.forumcinemas.lv seems to freeze, unable to scroll with a scrollbar.
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.