community-edition icon indicating copy to clipboard operation
community-edition copied to clipboard

Endpoint doesn't follow mouse pointer when scrolling

Open MornMartin opened this issue 2 years ago • 8 comments

Version:5.8.0 Description:

  • When i scroll document it works ok

scroll-html

  • When i scroll the container element (it is not docuemnt) it doesn't flow the mouse pointer

scroll-container

MornMartin avatar Jun 12 '22 16:06 MornMartin

@mornmartin can you try this in 5.9.0?

sporritt avatar Jul 12 '22 00:07 sporritt

I tried in master branch (latestCommitId: accc57eb673af6962cabbb382a5aab2817a87334), this issue remains. In my case, i made some changes in file https://github.com/jsplumb/jsplumb/blob/master/demo/draggableConnectors/index.html.

  1. Modify the el's style as height: 300px;overflow: auto; whose className includes jtk-demo-main
  2. Decrease view height until the vertical scrollbar appears
  3. Drag a endpoint
  4. Scroll the mouse wheel

MornMartin avatar Jul 12 '22 07:07 MornMartin

thanks for checking. yes i can see how to reproduce the issue by hand but i'm interested in reproducing it in a unit test.

sporritt avatar Jul 12 '22 07:07 sporritt

how to deal with the question,thank you very much

wangjingithub avatar Sep 27 '22 08:09 wangjingithub

this PR contains a fix

https://github.com/jsplumb/jsplumb/pull/1139

but no unit tests. i'd really like first to isolate this with a failing unit test.

sporritt avatar Sep 27 '22 14:09 sporritt

How can it be merged ? Should i write unit tests ?

MornMartin avatar Oct 25 '22 09:10 MornMartin

@sporritt @MornMartin is there any way to build packages from source?

jpech-tibco avatar Feb 13 '23 17:02 jpech-tibco

@sporritt @MornMartin is there any way to build packages from source?

Idk Im Not Sure Too,But I Think No,Only The Way Is you install it from cmd then paste it in your folder

j4acks0n avatar May 19 '23 05:05 j4acks0n