View Single Post
Old 07-30-2019, 12:08 PM   #19
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,957
Karma: 6361444
Join Date: Nov 2009
Device: many
As for not updating when clicking on images, I took a look at that code in detail and that is not a bug. Preview to CodeView has always worked that way even under webkit. The javascript uses the document selection anchor to determine its position (that is how it always works). Clicking on an image will not change cursor/selection position. So the position returned is always unchanged until you click someplace in the text. Clicking on the image caption, clicking immediately before the image, clicking immediately after the image work because the document selection is then changed.

There really is no other position to reference as images are not part of the text to select.
KevinH is online now   Reply With Quote