k2nr / ViChrome

vi like key binds for Google Chrome
233 stars 40 forks source link

Page gets stuck when developer tools is open #58

Open wecing opened 11 years ago

wecing commented 11 years ago

Steps to reproduce:

  1. open a random site, e.g. google.com
  2. inspect element
  3. after developer tools box is opened, click on the page (anywhere is fine)

Now the whole page should be stuck.

I took a look at the source code (again! yay!), found the issue actually comes from this line:

@scrollee = $(e.target).closest(":scrollable").get(0)

I don't know what :scrollable is; google doesn't give me an answer neither. But calling

document.body.webkitMatchesSelector(':scrollable')

on any page should always give you a "DOM Exception 12".

I tried to fix it, but don't know how to implement the functionality without the mysterious :scrollable(Seriously, what is it?). So now it's your turn, good luck...

wecing commented 11 years ago

Alright I see what you are doing there. It's weird that ":scrollable" is treated as a pure css selector.