E-book viewer: Improve performance when switching between normal and fullscreen views

This commit is contained in:
Kovid Goyal 2012-05-10 22:47:15 +05:30
parent 9dd54e99cc
commit ba92becea5

View File

@ -389,7 +389,7 @@ class CanonicalFragmentIdentifier
# Drill down into iframes, etc.
while true
target = cdoc.elementFromPoint x, y
if not target or target.localName == 'html'
if not target or target.localName in ['html', 'body']
# log("No element at (#{ x }, #{ y })")
return null