Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #468 from JuliaPlots/jk/disable-async-linked-limits
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel authored Jul 9, 2020
2 parents 7af1909 + ba1c421 commit fddb4be
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions src/makielayout/lobjects/laxis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,32 +94,8 @@ function LAxis(parent::Scene; bbox = nothing, kwargs...)
camera(scene).projectionview[] = projection
end

latest_tlimits = Ref(limits[])
isupdating = Ref(false)
missedupdate = Ref(false)

on(attrs.targetlimits) do tlims
latest_tlimits[] = tlims

if !isupdating[]
@async begin
isupdating[] = true
while true
missedupdate[] = false
update_linked_limits!(block_limit_linking, xaxislinks, yaxislinks, latest_tlimits[])
if !missedupdate[]
# the limit updating happens in async so there could be
# a new set of limits once that's done, in that case just
# do another update
break
end
end
isupdating[] = false
end
else
# this means that the limits will be updated once more
missedupdate[] = true
end
update_linked_limits!(block_limit_linking, xaxislinks, yaxislinks, tlims)
end

xaxis_endpoints = lift(xaxisposition, scene.px_area) do xaxisposition, area
Expand Down

0 comments on commit fddb4be

Please sign in to comment.