Skip to content

Commit

Permalink
Merge pull request #316 from YACReader/develop
Browse files Browse the repository at this point in the history
9.9.1 Release
  • Loading branch information
luisangelsm committed Sep 4, 2022
2 parents 4c74e7a + 68b3d75 commit 982d582
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 13 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,18 @@

Version counting is based on semantic versioning (Major.Feature.Patch)

## WIP
## 9.9.1

### YACReader
* Fix "go to" dialog not clearing the page number between runs.
* Fix scroll behavior in "go to flow" view (macos).

### YACReaderLibrary
* Fix scroll behavior in "cover flow" view (macos).
* Fix grid view unable to scroll in some systems.


## 9.9.0

### YACReader
* Show error when opening bad open recent entries
Expand Down
1 change: 1 addition & 0 deletions YACReader/goto_dialog.cpp
Expand Up @@ -74,6 +74,7 @@ void GoToDialog::setNumPages(unsigned int numPages)

void GoToDialog::open()
{
pageNumber->clear();
pageNumber->setFocus();
QDialog::open();
}
3 changes: 1 addition & 2 deletions YACReaderLibrary/qml/GridComicsView.qml
Expand Up @@ -707,8 +707,7 @@ Rectangle {
currentIndex: 0
cacheBuffer: 0

//disable flickable behaviour
interactive: false
interactive: true

move: Transition {
NumberAnimation { properties: "x,y"; duration: 250 }
Expand Down
26 changes: 17 additions & 9 deletions common/scroll_management.cpp
@@ -1,4 +1,6 @@
#include "scroll_management.h"
#include <QtCore>
#include <QApplication>

ScrollManagement::ScrollManagement()
{
Expand All @@ -9,25 +11,31 @@ ScrollManagement::ScrollManagement()

ScrollManagement::Movement ScrollManagement::getMovement(QWheelEvent *event)
{
/*QLOG_DEBUG() << "WheelEvent angle delta : " << event->angleDelta();
QLOG_DEBUG() << "WheelEvent pixel delta : " << event->pixelDelta();*/
// qDebug() << "WheelEvent angle delta : " << event->angleDelta();
// qDebug() << "WheelEvent pixel delta : " << event->pixelDelta();
// qDebug() << "Accumulator : " << wheelAccumulator;

int delta;
int tooFast = 1;
int timeThrottle = 16;
int minimumMove = 70;
int minimumMove;

if (event->pixelDelta().x() != 0 || event->pixelDelta().y() != 0) {
delta = event->pixelDelta().y() + event->pixelDelta().x();
minimumMove = 30;
} else {
delta = (event->angleDelta().y() / 8) + (event->angleDelta().x() / 8);
minimumMove = 8;
}

wheelAccumulator += delta;

// avoid any events overflood
if ((wheelTimer->elapsed() < tooFast)) {
event->setAccepted(true);
return None;
}

// Accumulate the delta
if ((event->angleDelta().y() < 0) != (wheelAccumulator < 0)) // different sign means change in direction
wheelAccumulator = 0;

wheelAccumulator += event->angleDelta().y();

// Do not process events too fast
if ((wheelTimer->elapsed() < timeThrottle)) {
event->setAccepted(true);
Expand Down
2 changes: 1 addition & 1 deletion common/yacreader_global.h
Expand Up @@ -5,7 +5,7 @@
#include <QDataStream>
#include <QMetaType>

#define VERSION "9.9.0"
#define VERSION "9.9.1"

#define REMOTE_BROWSE_PERFORMANCE_WORKAROUND "REMOTE_BROWSE_PERFORMANCE_WORKAROUND"

Expand Down

0 comments on commit 982d582

Please sign in to comment.