×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2004
    Location
    Vienna
    Posts
    321

    "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

  2. #2
    Registered User
    Join Date
    Mar 2007
    Location
    ..., Earth, Brazil, Paraiba, Campina Grande
    Posts
    72

    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.

  3. #3
    Registered User
    Join Date
    Mar 2011
    Posts
    5

    Re: "onmousedown" in 5th Edition, 0.9

    The same problem in Nokia N8.
    It will be fixed ?

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    10

    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.

  5. #5
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: "onmousedown" in 5th Edition, 0.9

    Hi,
    As a workaround you could try this
    http://wiki.forum.nokia.com/index.ph...-end_templates

    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

  6. #6
    Registered User
    Join Date
    Sep 2010
    Posts
    10

    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.

Similar Threads

  1. Series 40 5th Edition SDK Includes JSR-211
    By Nokia Ron in forum Mobile Java Tools & SDKs
    Replies: 11
    Last Post: 2011-11-02, 16:07
  2. Connecting emulator to Internet in S60 5th edition
    By bakha in forum Symbian Networking & Messaging (Closed)
    Replies: 17
    Last Post: 2009-07-16, 05:09
  3. Small change required in S60 5th Edition SDK Help and C++ Developer Library
    By kiran10182 in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 3
    Last Post: 2008-12-15, 19:12
  4. ListBox in 5th Edition??
    By rohanwaugh in forum Symbian User Interface
    Replies: 11
    Last Post: 2008-11-17, 12:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •