Hm… Could you please elaborate what you mean by “correct behavior”?
Because either this “jump behavior” should be there and work consistently or shouldn’t be there at all.
You can easily test the consistency by:
- Click and drag on the “test” text (
- and then click and drag on the time (
-> no jump anymore, and it won’t return… ever… no matter whether you drag by
body or by
When is such inconsistent behavior desirable? What am I missing?
Can you please pinpoint which section of code is responsible for this?
PS: I will also add that from an end-user point of view this jumping is simply bad. I expect it to move with the movement of my mouse and not jump to the pointer right away. What if I wanted to move it by 5 minutes but it jumps 5 hrs?
This is not really an issue in your demos because the
title el is always above the
body el and is really narrow so it is hardly ever dragged. But it is 100% reproducible in your demo apps.