Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

always commit placement to fix #11795 #12076

Merged
merged 1 commit into from
Jun 7, 2018
Merged

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Jun 7, 2018

fix #11795

Since placements will be committed even if they do not need the full fade duration to fade features in, we need the new fadeStartTime to keep track of how long we still need to fade. This is important because if we fade too long we will trigger another placement and never stop
rendering.

I think the important thing that needs to be reviewed is that the logic that prevents infinite rendering is sound.

Since placements will be committed even if they do not need the full
fade duration to fade features in, we need the new `fadeStartTime` to
keep track of how long we still need to fade. This is important because
if we fade too long we will trigger another placement and never stop
rendering.
@ansis ansis requested a review from ChrisLoer June 7, 2018 03:26
Copy link
Contributor

@ChrisLoer ChrisLoer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 This looks right to me, and I like that it also brings the logic a few steps closer to what GL JS does.

@ansis ansis merged commit 58b6c42 into master Jun 7, 2018
@ansis ansis deleted the fix-onmarkerclicklistener-11795 branch June 7, 2018 17:40
@ChrisLoer
Copy link
Contributor

🤔 Sorry I should have tried this before approving, but I just reproduced #11795 on top of this branch. I'll try to figure out what's going on there.

@ChrisLoer
Copy link
Contributor

Nevermind, it looked like the same problem but it was actually just that the reproduction case's query geometry didn't go all the way to the bottom of the viewport and I happened to be doing queries near the boundary.

@friedbunny friedbunny added Core The cross-platform C++ core, aka mbgl needs changelog Indicates PR needs a changelog entry prior to merging. rendering labels Jun 8, 2018
@friedbunny friedbunny removed the needs changelog Indicates PR needs a changelog entry prior to merging. label Jun 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problems onMarkerClickListener
3 participants