Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery click on scrollbar not registering as in the element in IE?

This is referring specifically to the jQuery dropkick plugin:

http://jamielottering.github.com/DropKick/

Scroll to the second demo where the lists overflow and there is a scrollbar. In ever browser but IE, you can interact with the scrollbar. In IE, the panel is hidden on mouse up, as if it is seeing that click as being outside of the element perhaps?

I'd love any help trying to track down the issue.

like image 764
S16 Avatar asked Jan 25 '12 23:01

S16


1 Answers

Try to do it this way:

  $dk.bind('focus.dropkick', function (e) {
    $dk.addClass('dk_focus');
  });

  $(document.body).bind('click.dropkick', function (e) {
     $dk.removeClass('dk_open dk_focus');
  });
like image 100
Cheery Avatar answered Oct 05 '22 22:10

Cheery