Windows 8 - On view state snapped

Bugs will be moved here once resolved.

Post » Tue Oct 16, 2012 10:54 pm

Hi guys,

Great work on Windows 8 functionality so far. A small bug I seem to have found:

In Windows 8, when dragging the game from a background state into the snapped position, the 'On view state snapped' event doesn't fire. When in a foreground state it works fine.

Thanks!
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Wed Oct 17, 2012 3:02 pm

How do you mean 'dragging from a background state'? Last I tried it everything was working fine, but I'm not sure exactly what you are doing.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Wed Oct 17, 2012 4:01 pm

Hmm, it actually looks more to do with suspending and then resuming into a snapped state.

Here's a video (apologies Fraps kept vertically flipping it). Up to 0:20 is working as expected (UI shrinks on snap), then after that it doesn't fire the event. I should imagine checking the state on start of layout should work - will test now.

http://youtu.be/09pZnb_fmDo
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Wed Oct 17, 2012 4:11 pm

Yep, my bad.

Just to reiterate, when checking 'on view state snapped' also check 'on start of layout + is view state snapped'. This ensures it accounts for resuming into a snapped state.

Thanks!
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Wed Oct 17, 2012 4:29 pm

Yeah, those triggers only fire when the view state changes - so they won't fire on start of layout. Your workaround sounds right.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests