Should touch events update the cursor position?

Martin Gräßlin mgraesslin at kde.org
Fri Oct 17 05:26:55 UTC 2014


On Thursday 16 October 2014 16:32:02 Weng Xuetian wrote:
> If we're talking about the cursor image moving or not, the cursor will hide
> on other platform if touch event comes int. The cursor position doesn't
> matter if there's no visual feedback (hover event).

consider that the mouse could be moved at the same time as the touch events 
appear. This makes me very unsure about hiding the cursor.

> 
> As for mouse.pos(), this should always be updated, for example there are
> application use mouse position to implement visual drag'n'drop.

On Wayland they get dedicated touch events. Applications relying on having the 
pointer position updated would clearly be an application bug.

Cheers
Martin

> 
> On Thu, Oct 16, 2014 at 10:48 AM, Martin Gräßlin <mgraesslin at kde.org> wrote:
> > Hi touch screen users,
> > 
> > I'm currently wondering how our cursor should behave when there are touch
> > events. Under X11 I expect that it moves the cursor, but is that really
> > the
> > expected behavior? Should it affect the cursor position at all?
> > 
> > In my thought it's the cursor image should only be moved by a pointer
> > device
> > (such as a mouse or a touch pad), but not by a touch screen.
> > 
> > What do the people with a touch screen think about it? How do you expect
> > it to
> > behave in a perfect world?
> > 
> > Cheers
> > Martin
> > _______________________________________________
> > Plasma-devel mailing list
> > Plasma-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/plasma-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20141017/74989d7d/attachment.sig>


More information about the Plasma-devel mailing list