Closed mayorbyrne closed 6 years ago
will have a look at it this weekend
I've committed a fix for this isse - c356dbb1034287b98e402611682caeaacfcf3fa2 Could you please check if this fixes your issue too? Thanks!
@bp74 that commit appears to fix the issue! Thanks for that!
Great! The reason was an optimization for rectangular masks. A rectangular mask that is aligned to the stage can be replaced with a more efficient WebGL scissor. Unfortunately there was a bug with this optimization if it was used in combination with a filter. In the past the mask was rendered in a different way and the bug with "relativeToParent" didn't show up, even if it was always there. I will release a new version of StageXL to Pub later today.
There are drastic differences in behavior between
1.1.0
and1.3.0+1
given the following code:Adding the filter to the background shape seems to work and fix the issue in
1.3.0+1
. Please let me know if this is the preferred way of applying filters, or if this is a bug that needs to be fixed within StageXL.EDIT: sorry for editing this so much, I realized I was using a slightly different version when I originally wrote that there was a scrolling issue. This is NOT the case. The above description and picture should now be accurate.