W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: Fwd: Re: [cssom-view] Is there a need for a plural form of document.caretPositionFromPoint()?

From: Scott Johnson <sjohnson@mozilla.com>
Date: Wed, 26 Jun 2013 09:12:31 -0500
Message-ID: <51CAF6CF.1040902@mozilla.com>
To: Simon Pieters <simonp@opera.com>
CC: "www-style@w3.org" <www-style@w3.org>
Ah, well, yes, that's true. ;)

~Scott

Thus Spoke Simon Pieters:
> On Tue, 25 Jun 2013 20:11:12 +0200, Scott Johnson
> <sjohnson@mozilla.com> wrote:
>
>> Yes, I have a use case.
>>
>> mozilla mobile currently uses caretPositionFromPoint for reflow-on-zoom.
>> We pull the caret position so that a double tap in a large paragraph can
>> scroll to the exact area where the user double-tapped, after reflow (as
>> the actual text position may change after reflowing).
>>
>> The problem is that if we have a double-tap event occur where there is
>> some type of overlaying or covering element, we get into a problem where
>> the caretPositionFromPoint returns a caret position within the overlaid
>> element. It's possible this is what we want, but it would be nice if we
>> could access ALL of the elements' caret positions, and then choose
>> easily from these.
>
> It seems to me like this zooming is a feature of the browser rather
> than something that an author would implement in a Web page/app. Is
> that right?
>
Received on Wednesday, 26 June 2013 14:13:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC