Closed ccanepa closed 10 years ago
From davexu...@gmail.com on October 02, 2011 08:54:36
Forgot to mention operating system. I am using Arch Linux.
From ccanepacc@gmail.com on October 02, 2011 21:30:14
Confirmed in windows xp sp3, python 2.6.6, cocos 0.5rc0, pyglet 1.2dev and pyglet 1.1.4 release. Eliminating the transition does not help. Need to investigate.
Status: Accepted
Labels: Type-Defect
From ccanepacc@gmail.com on October 29, 2011 10:09:37
Ok, the ultimate cause is that both ScrollingManager and ScrollableLayer are doing director.push_handlers(self.on_cocos_resize) in their on_enter method, but not a balancing pop in on_exit. That keeps references to the instances in director._event_stack even when the scene goes inactive.
If we add a pop at on_exit, the layers will miss notifications about window resize while they are inactive, so we need to ensure that at each on_enter we have code that handles resizes that happened when the nodes were not in the active scene.
I will look at the code and modify some test(s) in issue 153 (they exercise scrolling, both with and without tilemaps), then look for well behaved fixes.
Owner: ccanepacc@gmail.com
From ccanepacc@gmail.com on February 26, 2012 08:53:11
fixed at commit 53cebc1 attached specific test, fails with commit 322d9a7 , pass with commit 53cebc1
Status: TrunkFixed
Labels: OpSys-All Component-Tiles
From dthomps...@worcester.edu on August 14, 2012 10:36:23
Thank you! :)
From davexu...@gmail.com on October 02, 2011 12:53:52
What steps will reproduce the problem? 1. Run the code below (put the .py file in the test/ directory as it is based off of the test_tiles.py test)
Here is the test:
Original issue: http://code.google.com/p/los-cocos/issues/detail?id=169