• R/O
  • HTTP
  • SSH
  • HTTPS

CharacterManaJ: Commit

キャラクターなんとかJの本体


Commit MetaInfo

Revision779065e435e79b60a575171c0986707033fcff31 (tree)
Time2019-01-13 13:17:34
Authorseraphy <seraphy@user...>
Commiterseraphy

Log Message

ズームパネルのマウス表示判定のスケール対応

Change Summary

Incremental Difference

--- a/src/main/java/charactermanaj/ui/PreviewPanel.java
+++ b/src/main/java/charactermanaj/ui/PreviewPanel.java
@@ -394,7 +394,8 @@ public class PreviewPanel extends JPanel {
394394 public void mouseMoved(MouseEvent e) {
395395 Rectangle rct = previewImgScrollPane.getBounds();
396396 int y = e.getY();
397- if (y > rct.height - appConfig.getZoomPanelActivationArea()) {
397+ UIHelper uiUtl = UIHelper.getInstance();
398+ if (y > rct.height - (int) (appConfig.getZoomPanelActivationArea() * uiUtl.getScaleY())) {
398399 previewControlPanel.setVisible(true);
399400 } else {
400401 if ( !previewControlPanel.isPinned()) {
Show on old repository browser