Do not drop pixels if ScrollCommand is executed

This commit is contained in:
David Capello 2014-08-24 23:33:33 -03:00
parent 16ba5920a1
commit 35fc9836df
1 changed files with 2 additions and 1 deletions

View File

@ -408,7 +408,8 @@ void MovingPixelsState::onBeforeCommandExecution(Command* command)
if (moveMaskCmd->getTarget() == MoveMaskCommand::Content)
return;
}
else if (strcmp(command->short_name(), CommandId::Zoom) == 0) {
else if ((strcmp(command->short_name(), CommandId::Zoom) == 0) ||
(strcmp(command->short_name(), CommandId::Scroll) == 0)) {
return;
}