Discussion:
mouseClick vs mouseDoubleClick
Steven W. Riggins
2006-07-06 23:38:18 UTC
Permalink
I am having a little issue :)

When I double click, I am seeing:

<on: mouseDoubleClick>

and then

<on: mouseClick>

Shouldn't the mouseclick be swallowed if there was a double click?

I'm also seeing CPrimitiveCostume handleMouseDown called twice per
click. Is this right?
Andreas Raab
2006-07-07 03:15:24 UTC
Permalink
Post by Steven W. Riggins
I am having a little issue :)
<on: mouseDoubleClick>
and then
<on: mouseClick>
Shouldn't the mouseclick be swallowed if there was a double click?
Yes.
Post by Steven W. Riggins
I'm also seeing CPrimitiveCostume handleMouseDown called twice per
click. Is this right?
No, it's not. Let me investigate the problem.

Cheers,
- Andreas
Steven W. Riggins
2006-07-07 03:23:39 UTC
Permalink
Post by Andreas Raab
Post by Steven W. Riggins
I am having a little issue :)
<on: mouseDoubleClick>
and then
<on: mouseClick>
Shouldn't the mouseclick be swallowed if there was a double click?
Yes.
Post by Steven W. Riggins
I'm also seeing CPrimitiveCostume handleMouseDown called twice per
click. Is this right?
No, it's not. Let me investigate the problem.
the double I was seeing came from embedded players (I believe)

But I am still getting mouseClick: and mouseDoubleClick: ona double
click. (Could be a Sophie issue, but I could not find anything that
woul dcause this)
Post by Andreas Raab
Cheers,
- Andreas
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Bert Freudenberg
2006-07-07 07:46:03 UTC
Permalink
Post by Steven W. Riggins
I am having a little issue :)
<on: mouseDoubleClick>
and then
<on: mouseClick>
That's bug #1039, you currently get the double-click before the click.
Post by Steven W. Riggins
Shouldn't the mouseclick be swallowed if there was a double click?
Yes.
Actually, no. That would mean you could get a click event only after
the double-click timeout. The UI would feel very sluggish that way.
What UIs usually do is that click selects the item and the following
double-click performs some action on it.

See the GIFs attached to

http://bugs.impara.de/view.php?id=1039

Also, see the bug report itself and its related reports. Assigned to
me for ages, I know :( Hasn't been a show-stopper until now ...

I'll wait to see what Andreas finds, and then have a look myself, if
still necessary.

- Bert -
Andreas Raab
2006-07-07 07:51:40 UTC
Permalink
Post by Steven W. Riggins
Shouldn't the mouseclick be swallowed if there was a double click?
Yes.
Actually, no. That would mean you could get a click event only after the
double-click timeout. The UI would feel very sluggish that way. What UIs
usually do is that click selects the item and the following double-click
performs some action on it.
You're right, I'll take this back. The picture makes perfect sense.

Cheers,
- Andreas
See the GIFs attached to
http://bugs.impara.de/view.php?id=1039
Also, see the bug report itself and its related reports. Assigned to me
for ages, I know :( Hasn't been a show-stopper until now ...
I'll wait to see what Andreas finds, and then have a look myself, if
still necessary.
- Bert -
_______________________________________________
Tweak mailing list
http://impara.de/mailman/listinfo/tweak
Loading...