pencil2d / pencil

Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. Pencil2D is open source and cross-platform.
http://pencil2d.org
GNU General Public License v2.0
1.45k stars 272 forks source link

Sound layer frame selection displays frame container incorrectly #1686

Closed Jose-Moreno closed 2 years ago

Jose-Moreno commented 2 years ago

Issue Summary

There's some issues with the sound frame visualization:

Video or Image Reference

Unselected Frame image

Selected frame Notice how the frame container shifts towards the left; If I grab the sound in any place that it should exist, I can drag it properly, so it's just a visual glitch when selected

image

Expected Results

Frame container previsualization should accurately depict the position and length of the sound frame or any other frame in any layer.

Steps to reproduce

  1. Add a sound layer
  2. Add a sound file
  3. Observe the correct position of the frame container
  4. Select the the frame container
  5. Notice the offset towards the left of its starting point

System Information

commit: 91b1721baef012d49cffd0d23358524a420af9fd date: 2021-11-14_16:46:59

Operating System: Windows 10 Version 2009 CPU Architecture: x86_64 Qt Version: 5.15.2

MrStevns commented 2 years ago

Fixed via d93dc19cb7c8ad0d2117d7be07e03ea204e4d5f2