ailon / markerjs2

Add image annotation to your web apps.
https://markerjs.com
Other
142 stars 39 forks source link

marker changes position in first zoom #151

Open jonSeetrue opened 1 year ago

jonSeetrue commented 1 year ago

Hi.

After creating a marker squarer marker whit the MarkerArea with typeName: 'FrameMarker'. when clicking on the zoom in button for the first time the marker changing position a lite bet to the right, when zoom in more the marker stay in the same position. is there a fix for this kind of behaviour. Thanks.

Screenshot from 2023-06-15 11-04-41

ailon commented 1 year ago

Interesting. Yes, I think I can reproduce it. I will investigate and fix the bug. Thank you for reporting!

jonSeetrue commented 1 year ago

just open pull request that fix the issue let if you can review it Thanks.

ailon commented 1 year ago

marker.js doesn't accept pull requests, unfortunately. Please see CONTRIBUTING.md for details. But thank you for the tip. I'll investigate further and fix it.

jonSeetrue commented 1 year ago

sure no problem you can take a look at the change i made and if it will assist in any why fell free to use them,

ailon commented 1 year ago

Hmm... Do you by any chance have a simple repro of this issue? I can see it on our demo page but when I try it in my test setup or with basically the same demo on codesandbox it works just fine for some reason.

I'll try to reverse engineer the demo on the website to some specific CSS(?) setting that causes a different behavior but thought I'd ask if you have some simple repro wtih this issue visible. Thanks!