mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

Div content gets selected upon scroll. #32

Closed HarisBilal closed 10 years ago

HarisBilal commented 10 years ago

If I clcik on scroller thumb and drag it down or top. the contnet in the div on which scroller is applied gets selected.

If you can help me in this regard It will be highly appreciable.

selection

mzubala commented 10 years ago

Someone already reported that before in #29. That was only firefox problem. Do you have it in other browsers? I made a fix that was suggested there. Please try the latest source to see if that helps.

HarisBilal commented 10 years ago

Thanks for the reply, I am having this problem in IE. Testing this on IE 8. I went through the replies you provided in the issue no 29. but I am not clear about how to implement it.

If you can help me in:

  1. How to place 'not-selectable' class and attribute 'unselectable'.
  2. You mentioned startMouseMoveScrolling function. but I am unable to find it in your js file.

Can you illustrate how to fix it by providing some steps.

It would be really help-full.

I am using this control in SharePoint 2013 environment.

This is how I placed script block in my master page:

image

mzubala commented 10 years ago

@HarisBilal it seems that you're using a different plugin that this one ;) This plugin (https://github.com/mzubala/jquery-custom-scrollbar) doesn't select content when scrolling out of the box. You don't have to implement anything, just switch to my plugin and you'll be fine ;)