Bug 94019 - Inconsistent behaviour when drag-moving a chart, chart doesn't always move with mouse.
Summary: Inconsistent behaviour when drag-moving a chart, chart doesn't always move wi...
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 10:36 UTC by kie000
Modified: 2023-12-28 18:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kie000 2015-09-08 10:36:51 UTC
What happens:
Click and hold left mouse button on chart to drag it, start dragging but chart is not shown being dragged so it is difficult to see where you are dragging the chart to.

When this happens, the mouse pointer has a small rectangle with it indicating dragging is in effect - this only appears when the chart itself is not being (displayed as being) dragged. 

Expected:
Chart is always shown when being dragged so that it can easily be placed where desired.

Reproducible: Yes, sometimes, I can't work out how to reproduce it other than keep trying. Clicking on different cells and dragging different charts causes this to happen sometimes with no apparent cause. Also one time the chart momentarily started dragging and then switched to not displaying dragging, another time the chart failed to drag at all. The code which decides whether or not something is being dragged seems to be a bit buggy.

Why does the rectangle appear with the mouse pointer instead of dragging the actual chart? Does this appear when some part of the programs or perhaps hardware acceleration fails? It seems like a kludge to get around a bug.

Windows 7, Nvidia video card, Calc 5.0.0.5
Comment 1 kie000 2015-09-08 10:40:24 UTC
PS, this seems to happen more often when switching from another program like Firefox back to calc (even when switching to calc completely first). It happens much less often when you drag a chart for a 2nd or 3rd time etc.
Comment 2 m_a_riosv 2015-09-08 22:53:29 UTC
Hi @_kje000, thanks for reporting.

After read the report I have tested with one of my files, and only the first time I dragged a chart I see the issue, not able anymore even after reopening the program.

Please could you test if:

- Menu/Tools/LibreOffice/Memory - Graphics cache, with a higher values like 256 and also a higher number of objects for Cache inserted Objects.

- Menu/Tools/LibreOffice/View - Graphics Output, playing with this options.

has some effect.
Comment 3 kie000 2015-09-09 09:51:18 UTC
Hi,

Didn't fix it, changed 200MB -> 512MB and 5MB -> 24MB per object.

Unticked hardware acceleration and 'Use anti-aliasing' - still happens

Use OpenGL doesn't work, even if I tick force opengl, it unticks itself.

Bug still happens so it's not a hardware or graphics cache memory issue - especially as it tends to happen soon after opening LibreOffice.

I would think the way to find this bug is look for the code that causes the icon to display a little rectangle when dragging (as part of the mouse icon) and trace back from there, look for an if statement that goes one way or the other - this appears to be a kludge for a piece of code that fails to work - why does it fail?

Where are mouse icons stored, what is this particular icons reference code?
Comment 4 m_a_riosv 2015-09-09 20:02:07 UTC
Please try resetting the user profile, sometimes solves strange issues.
https://wiki.documentfoundation.org/UserProfile
Comment 5 Xisco Faulí 2016-09-11 13:33:37 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2016-10-10 10:19:07 UTC Comment hidden (obsolete)
Comment 7 Ian Eales 2023-12-28 18:23:12 UTC
7.5.9.2

Dragging charts is terribly inconsistent. 

Sometimes they will get the border and outline and move as expected.

Sometimes the graphic gets the corner boxes when clicked and only a small box when mouse down and move.

Appears more prevalent after a file is saved on the first selected graphic. First two attempts to move the graphic result in the little box and no outlining blue border.

Utterly inconsistent as to what happens.

Click and hold causes the blue box to draw, then disappear after ≈1s. It appears that clicking and moving immediately allows the blue outline to remain and keeps the little cursor box at bay.

Debugging HINT: what causes the little box to draw when mouse is clicked on a selected graphic?




ALSO - work area should not pan when a graphic is selected and is partway off the viewport