Disable popCenter on mobile devices

Page: 1

Author Post
Member
Registered: Nov 2016
Posts: 2
I've checked the fboptions but can't find the one that might allow me to disable the popCenter function on mobile devices...With no hover state, I'd prefer that the popCenter image be ignored and that my FB animation become active on the first click (or touch).

Many thanks for your help on this.
Administrator
Registered: Aug 2008
Posts: 3382
Can't be done through option settings, but easy to do with a custom touch event handler.

Add this to the link that has the fbPopcenter class on it:
ontouchstart="window.fb.start( this ); return false;" 

The first touch on that link will start a normal floatbox and cancel the mouseover effect. Real mouseovers and clicks will be unaffected.
Member
Registered: Nov 2016
Posts: 2
Perfect! Thank you very much for your prompt reply.

Page: 1