Giter Site home page Giter Site logo

Comments (8)

jagenjo avatar jagenjo commented on May 16, 2024 1

I just uploaded a version, let me know if the bug is fixed.

from litegraph.js.

leandersonralves avatar leandersonralves commented on May 16, 2024

Sugestion:
Line 4879

e.canvasX = e.offsetX;
e.canvasY = e.offsetY;

from litegraph.js.

jagenjo avatar jagenjo commented on May 16, 2024

I will check it next week, never embeded a graph in a regular website

from litegraph.js.

leandersonralves avatar leandersonralves commented on May 16, 2024

After more test, I suggest:

Lines 2864 and 2865
e.localX = e.offsetX;
e.localY = e.offsetY;

from litegraph.js.

calvaradocl avatar calvaradocl commented on May 16, 2024

Hi, was this issue corrected? Because when using litegraph on a page that has scrolled down, I can't select the nodes unless i click a little bit up of the node (the size of the scroll).

from litegraph.js.

calvaradocl avatar calvaradocl commented on May 16, 2024

Hi @jagenjo, the issue was corrected on Chrome and Firefox, but it persists on Edge (42.17134.1.0), don't know if you plan to support that browser.

from litegraph.js.

jagenjo avatar jagenjo commented on May 16, 2024

I guess thats a bug from edge, the current function relies on clientY and getClientBoundingRect which are well defined functions in the standard, so if some weird thing happens in Edge it must be a bug on that browser. If you manage to see a work around let me know, I cannot test it as I dont have Edge.
I leave this issue open.

from litegraph.js.

calvaradocl avatar calvaradocl commented on May 16, 2024

Ok, I'll try to run some tests and check if I can find out a fix with the update that you uploaded today.

from litegraph.js.

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.