Short description
Mouse clicking, hovering and dragging is always active on an InfiniteLine object drawn at a very small absolute angle irrespective of the mouse position within the view box.
Code to reproduce
import pyqtgraph as pg
import PySide6
import pyqtgraph as pg
app = pg.mkQApp()
plt = pg.plot()
xr=[]
for i in range(10):
xr.append(i*1.0e+06)
sample = plt.plot(xr,range(10))
infline=pg.InfiniteLine(pos=[1.0e+06,2],angle=4.0e-05,movable=True)
plt.addItem(infline)
plt.show()
app.exec()
Expected behavior
Normal mouse clicking, hovering and dragging behavior.
Real behavior
Mouse clicking, hovering and dragging are always active on the InfiniteLine object regardless of whether the mouse pointer is over this object or elsewhere in the view box. This happens both with the PySide6 and default (PyQt5) config.
Tested environment(s)
- PyQtGraph version: 0.12.1
- Qt Python binding: PyQt5 5.15.4 Qt 5.15.2
- Python version: Python 3.9.5
- NumPy version: N/A
- Operating system: Linux
- Installation method: pip
Short description
Mouse clicking, hovering and dragging is always active on an InfiniteLine object drawn at a very small absolute angle irrespective of the mouse position within the view box.
Code to reproduce
Expected behavior
Normal mouse clicking, hovering and dragging behavior.
Real behavior
Mouse clicking, hovering and dragging are always active on the InfiniteLine object regardless of whether the mouse pointer is over this object or elsewhere in the view box. This happens both with the PySide6 and default (PyQt5) config.
Tested environment(s)