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. # Drill down into iframes, etc.
while true while true
target = cdoc.elementFromPoint x, y 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 })") # log("No element at (#{ x }, #{ y })")
return null return null