Skip to content

Commit

Permalink
Changes default height for SVG rendering to maxHeight to fix blank tr…
Browse files Browse the repository at this point in the history
…ack effect on slow CPU (#4480)
  • Loading branch information
carolinebridge committed Jul 10, 2024
1 parent f7413b2 commit bb54ed5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,11 @@ const SvgFeatureRendering = observer(function SvgFeatureRendering(props: {
const [region] = regions
const width = (region.end - region.start) / bpPerPx
const displayMode = readConfObject(config, 'displayMode') as string
const maxConfHeight = readConfObject(config, 'maxHeight') as number

const ref = useRef<SVGSVGElement>(null)
const [mouseIsDown, setMouseIsDown] = useState(false)
const [height, setHeight] = useState(0)
const [height, setHeight] = useState(maxConfHeight)
const [movedDuringLastMouseDown, setMovedDuringLastMouseDown] =
useState(false)

Expand Down

0 comments on commit bb54ed5

Please sign in to comment.