[Solved] "Pan" function limited in movement

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
domad
Veteran
Posts: 2053
Joined: Mon Jun 22, 2020 12:16 pm

[Solved] "Pan" function limited in movement

Post by domad »

Greetings to the Community!
It looks like in the weekly build:

Code: Select all

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31513 (Git) AppImage
Build type: Release
Branch: master
Hash: b2ab8edba4bfd71681e639f8c3f1105066bed4c7
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Local: Local
the "pan" function of TechDraw is limited in movement, in particular using a large sheet it is impossible to move the page freely, this is very annoying for example when there is a strong zoom, it does not happen with the FC 0.21-31488 version.
Last edited by domad on Mon Jan 23, 2023 5:01 pm, edited 1 time in total.
chrisb
Veteran
Posts: 53933
Joined: Tue Mar 17, 2015 9:14 am

Re: "Pan" function limited in movement

Post by chrisb »

Does it depend on the mouse model?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
domad
Veteran
Posts: 2053
Joined: Mon Jun 22, 2020 12:16 pm

Re: "Pan" function limited in movement

Post by domad »

chrisb wrote: Sun Jan 08, 2023 12:50 pm Does it depend on the mouse model?
Hi chris, hello to the Community!
No, these are the steps to reproduce:
mouse system = Blender; preferences= zoom to cursor;
- create any object in the model view
- create a page in Techdraw
- set up a large size template A0, A1..
- create a view of the object
- move the created view to the upper left corner, to the border or off the sheet
- zoom (mouse wheel) on the view, this phase becomes problematic
- activate the pan (shift+ central button or wheel_button) by moving to the right, trying to frame the upper left part of the sheet to frame the created view, even with the scrolling of the bars I cannot frame the view.
I correct what was previously stated, also the FC 0.21-31488 version suffers from the same problem.
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: "Pan" function limited in movement

Post by wandererfan »

domad wrote: Sun Jan 08, 2023 1:43 pm
I think I followed the directions up to here:
upperLeftZoom.png
upperLeftZoom.png (23.98 KiB) Viewed 1418 times
What happens next?

The scrollable area is only 3x page size - is that the issue?
scrollableArea.png
scrollableArea.png (10.77 KiB) Viewed 1418 times
domad
Veteran
Posts: 2053
Joined: Mon Jun 22, 2020 12:16 pm

Re: "Pan" function limited in movement

Post by domad »

wandererfan wrote: Sun Jan 08, 2023 5:24 pm .....
What happens next?

The scrollable area is only 3x page size - is that the issue?
Hello wandererfan, greetings to the Community!
No, that's not the problem (at least I think), unless it's related.
I apologize for the delay in replying, I was away from the computer, then I also had to create an animated gif to be more explicit.
The gif shows what happens, in practice only the lower left corner of the page works, for the other positions it is not possible to zoom where the cursor is and it is not possible to use the Pan, not even the sidebars and in low they manage to frame the view.
Attachments
Pan-zoom-function_limited_in_movement.gif
Pan-zoom-function_limited_in_movement.gif (188.54 KiB) Viewed 1359 times
domad
Veteran
Posts: 2053
Joined: Mon Jun 22, 2020 12:16 pm

Re: "Pan" function limited in movement

Post by domad »

Greetings to the Community!
The problems (zoom and pan) also persist in the FC 0.21-31527 version, in particular they occur with formats greater than A3, while with smaller formats they seem to work.
aapo
Posts: 615
Joined: Mon Oct 29, 2018 6:41 pm

Re: "Pan" function limited in movement

Post by aapo »

domad wrote: Wed Jan 11, 2023 8:57 am ... in particular they occur with formats greater than A3, while with smaller formats they seem to work.
Hmm, that is peculiar, indeed. I wonder how the size of the paper could affect this..? Maybe there are some hard coded constants in the code.
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: "Pan" function limited in movement

Post by wandererfan »

domad wrote: Wed Jan 11, 2023 8:57 am
I think if you change your zoom, you'll be able to frame the interesting area. In any case, I'm going to change the outer limits of the scrollable area from 3x to 5x the page size.
panLimitsBefore.gif
panLimitsBefore.gif (139.72 KiB) Viewed 1184 times
panLimitsAfter.gif
panLimitsAfter.gif (210.72 KiB) Viewed 1184 times
domad
Veteran
Posts: 2053
Joined: Mon Jun 22, 2020 12:16 pm

Re: "Pan" function limited in movement

Post by domad »

wandererfan wrote: Wed Jan 11, 2023 2:21 pm I think if you change your zoom, you'll be able to frame the interesting area. In any case, I'm going to change the outer limits of the scrollable area from 3x to 5x the page size.
Greetings to the Community!
Changing the zoom does not solve the problem.
I insist on the fact that it could not be the limits of the scrollable area, it could instead be linked to the synchronization/alignment between the background (white box that represents the card), the scrollable area and the TechDraw page center, because the only corner, or area, that does not suffer from the problem is the one on the lower left.
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: "Pan" function limited in movement

Post by wandererfan »

domad wrote: Thu Jan 12, 2023 12:18 pm
Can you detect what am I doing differently?
Attachments
zoomExtents.gif
zoomExtents.gif (179.85 KiB) Viewed 1055 times
Post Reply