bugGnash - The GNU Flash player - Bugs: bug #22893, Buttons and clickable area...

 
 

bug #22893: Buttons and clickable area misalignment?

Submitter:  Nico Coesel <ncoesel>
Submitted:  Thu 10 Apr 2008 03:19:29 PM UTC
   
 
Category:  gui-fb Severity:  3 - Normal
Release:  None Status:  None
Privacy:  Public Assigned to:  udog
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 11 Apr 2008 08:09:41 AM UTC, comment #3: 

It is the scaling (getXScale / getYScale) indeed. I've got tslib working with Gnash now. I'll post the patches shortly.

Nico Coesel <ncoesel>
Thu 10 Apr 2008 09:04:22 PM UTC, comment #2: 

Looking at the other GUI code, I think I know where I got it wrong. The coordinates are always scaled using getXScale and getYScale. I didn't implement that. The scale seems to depend on the size of the movie. I'll add the scaling to my code first thing in the morning and report the results. I'll be back...

Nico Coesel <ncoesel>
Thu 10 Apr 2008 06:52:34 PM UTC, comment #1: 

Udo, this seems for you

Sandro Santilli <strk>
Group Member
Thu 10 Apr 2008 03:19:29 PM UTC, original submission:  

I'm working on getting tslib (generic touchscreen driver/filter) to work with fb-gnash on an embedded device. I noticed I have to click outside buttons to activate them.

I tried the following flash file:

# gnash -v -vb t.log http://www.permadi.com/tutorial/flashperl/helloperl.swf

It shows a button and a text. When the button is clicked, the text changes. On the embedded device, the button is in the center of the screen.

When I click the center of the button there is no response. The touchscreen calls notify_mouse_move with the following coordinates (width and height are m_stage_width and m_stage_height):

196] 07:24:03: DEBUG: Touched x: 155 y: 120 width: 320 height: 234
1196] 07:24:03: DEBUG: lifted x: 155 y: 120

However, when I click above the button, the button is activated.

1169] 07:14:43: DEBUG: Touched x: 159 y: 83 width: 320 height: 234
1169] 07:14:43: DEBUG: lifted x: 159 y: 83
1182] 07:14:43: DEBUG: HTTP response 200 from url http://www.permadi.com/cgi-bin
/fpcgi/flashperl/hello.pl

Another example from the same page has the same problem. I have to click above the button to activate it.
http://www.permadi.com/tutorial/flashperl/timeperl2.swf

Yet another flash file:
http://www.macloo.com/examples/flash/buttons/buttons.swf
In this flash file I have to click slightly below the buttons to activate them. I cannot click the return button to restart the animation.

I tried fltk-gnash under windows. The first and third file work okay. I also tried gtk-gnash (using tinyx and tslib) on my embedded system. In this case the buttons also work okay.

Any ideas?

Nico Coesel <ncoesel>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by strk (Posted a comment)
  • -email is unavailable- added by ncoesel (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-04-10 strk Assigned toNone udog

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code