From ba92becea566c3cc6fe70d2665f99bd2a9020aaa Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 May 2012 22:47:15 +0530 Subject: [PATCH] E-book viewer: Improve performance when switching between normal and fullscreen views --- src/calibre/ebooks/oeb/display/cfi.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/display/cfi.coffee b/src/calibre/ebooks/oeb/display/cfi.coffee index 7f8acb23f1..4ab9642df6 100644 --- a/src/calibre/ebooks/oeb/display/cfi.coffee +++ b/src/calibre/ebooks/oeb/display/cfi.coffee @@ -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