Giter VIP home page Giter VIP logo

Comments (3)

swharden avatar swharden commented on May 17, 2024

@bukkideme thanks for bringing this to my attention!
This bug is now fixed in ScottPlot 3.0.4 (available on NuGet)

Recreating this bug (without ScottPlot)

The fundamental problem seems to be that calling Application.DoEvents() on SplitterMoved (or a child's SizeChanged event) causes the split to freeze. Interestingly resizing the form unfreezes the splitter.

  1. create a new Winform project
  2. drop a SplitContainer on the form
  3. add Application.DoEvents() to the SplitContainer's SplitterMoved event
  4. resize a bunch of times and eventually the split will freeze
  5. once frozen, resizing the form unfreezes it

The Fix

The ScottPlot user control's SizeChanged event calls Render() which was calling Application.DoEvents(). I removed that call (5e485a9) and the program seems to be working well without it and the SplitContainer bug is gone.

from scottplot.

swharden avatar swharden commented on May 17, 2024

... just realized the Application.DoEvents() is required for smooth left-click-drag scrolling. I'll be putting that line back in, but only calling it if the user is actively panning/zooming. This will prevent it from being called when resizing a SplitContainer

from scottplot.

swharden avatar swharden commented on May 17, 2024

Fixed: 4bc377c
I'll push an update to NuGet in the next hour or so.

from scottplot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.