Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 77
Registered: ‎09-05-2012
My Device: Z10 Red, PlayBook, DevAlpha C
My Carrier: Play
Accepted Solution

Problem with hover state in BB10

Hi,

After upgrading my DevAlpha A to the latest version, 10.0.9.1675, I have problems with 2-state buttons.

Sample code:

#myBtn{
	background-image: url(btn/myBtn.png);
	background-repeat: no-repeat;
	background-position: 0px 0px;
}
#myBtn:hover{
	background-position: 0px -124px;
}

So, when I click the button, it stay freezed up in hover state, doesn't return to default position. All my ww apps are touched by this issue.

 

Can anybody try to reproduce this issue?

If yes, what is solution?

 

Developer
Posts: 270
Registered: ‎12-13-2010
My Device: PlayBook 16GB, BB10 Dev Alpha
My Carrier: o2 (de)

Re: Problem with hover state in BB10

This is somehow the standard :hover behavior I noticed in mobile browsers. Since is no cursor, hovering is only simulated...

The easiest solution (and the one I use in my projects) is to use :active instead of :hover.

 

#myBtn:active{
	background-position: 0px -124px;
}

 

- - -
My approved apps @ App World
Developer
Posts: 77
Registered: ‎09-05-2012
My Device: Z10 Red, PlayBook, DevAlpha C
My Carrier: Play

Re: Problem with hover state in BB10

Hi biggerCC

Thanks a lot . Now It works fine.