Skip to content

Commit

Permalink
Handle mouse back button clicks.
Browse files Browse the repository at this point in the history
  • Loading branch information
gigaherz committed Jan 8, 2017
1 parent 7fac234 commit a4df78d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories {
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'maven-publish'

version = "1.3.2"
version = "1.3.3"
group = "gigaherz.guidebook" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "Guidebook-1.10.2"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOEx
if (book.mouseClicked(mouseButton))
return;

if (mouseButton == 3)
{
book.navigateBack();
return;
}

super.mouseClicked(mouseX, mouseY, mouseButton);
}

Expand Down

0 comments on commit a4df78d

Please sign in to comment.