"onmousedown" in 5th Edition, 0.9
Hi,
I'm using the onmousedown event for a <DIV>-Button in my Widget. But actually this event is trigger when the button is released; It is very similar to onmouseup (which is triggered right after onmousedown).
Can someone confirm that or show me a workaround?
Cheers, geri-m
Re: "onmousedown" in 5th Edition, 0.9
Hi Geri,
I got the same behaviour here (onmousedown works like onmouseup) snd I don't have a workaround because i didn't find an event that has the same behaviour of onmousedown event.
Cheers, mfabiop.
Re: "onmousedown" in 5th Edition, 0.9
The same problem in Nokia N8.
It will be fixed ?
Re: "onmousedown" in 5th Edition, 0.9
I noticed the same today.
I was trying to set a different class to a link (button) while pressing it down because a.link:active CSS selector isn't working either. Funny that it's not possible to make the UI 'responsive' so that a link element could show a different state while pressed down. Pretty basic thing, I falsely assumed.
Re: "onmousedown" in 5th Edition, 0.9
Hi,
As a workaround you could try this
[url]http://wiki.forum.nokia.com/index.php/Component_highlight_fix_with_high-end_templates[/url]
Of course it is not the same as onmousedown, but at least user would get some kind of feedback when he/she clicks on a element.
-Ilkka
Re: "onmousedown" in 5th Edition, 0.9
Oh well, I had a similar solution with jquery already
$('.button').mousedown(function(elem) {
var a = $(elem.currentTarget);
a.addClass('clicked');
setTimeout("$('#" + a.attr('id') + "').removeClass('clicked');", 350);
});
but as the mousedown really works as mouseup, and buttons usually perform some other actions too, it just underlines that the UI is unresponsive. That is, you don't know you are clicking anything WHEN you're clicking it. Only afterwards.