ViChrome icon indicating copy to clipboard operation
ViChrome copied to clipboard

Page gets stuck when developer tools is open

Open wecing opened this issue 12 years ago • 1 comments

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 avatar Aug 17 '13 00:08 wecing

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

wecing avatar Aug 30 '13 21:08 wecing