From 48197bd972e294a4c3f39048b85ceb48917bf0eb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Jan 2012 22:43:15 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/display/test-cfi/cfi-test.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/ebooks/oeb/display/test-cfi/cfi-test.coffee b/src/calibre/ebooks/oeb/display/test-cfi/cfi-test.coffee index b6e1cb02dc..b259636722 100644 --- a/src/calibre/ebooks/oeb/display/test-cfi/cfi-test.coffee +++ b/src/calibre/ebooks/oeb/display/test-cfi/cfi-test.coffee @@ -34,6 +34,9 @@ mark_and_reload = (evt) -> # be on the underlying element if evt.button == 2 return # Right mouse click, generated only in firefox + reset = document.getElementById('reset') + if document.elementFromPoint(evt.clientX, evt.clientY) == reset + return ms = document.getElementById("marker") if ms ms.parentNode?.removeChild(ms)