webOS Nation Forums >  Homebrew >  webOS patches > [PATCH] Add Browser Back Forward Gesture
[PATCH] Add Browser Back Forward Gesture

  Reply
Like Tree1Likes

 
LinkBack Thread Tools Display Modes
Old 09/20/2011, 11:52 PM   #1 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default [PATCH] Add Browser Back Forward Gesture

This patch is deprecated, please see the new version here:
http://forums.precentral.net/webos-p...-touchpad.html


Here is Garrett92C's official thread:
(Touchpad) Simple Browser Gestures | webOSroundup


This version is inverted from Garrett's version. The left side of the screen is back, the right side is forward.

If you want the version where you swipe from the right side to go back and the left side to go forward, it's titled "Simple Browser Gestures" in preware.

This patch conflicts with "Add ThumbNav Controls" and possibly powerswipe.

This is Touchpad webOS 3.0.2 ONLY!

Last edited by Nightburn; 09/23/2011 at 06:50 PM.
Nightburn is offline   Reply With Quote
Liked by Ubuntite likes this.
Thanked By: dodnet
Old 09/21/2011, 02:39 AM   #2 (permalink)
Member
 
Join Date: Aug 2011
Posts: 723
Likes Received: 37
Thanks: 13
Thanked 38 Times in 31 Posts
Default

Did you fix the issue of back not working for the first few pages?

Alan
alan sh is offline   Reply With Quote
Old 09/21/2011, 03:02 AM   #3 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

Quote:
Originally Posted by alan sh View Post
Did you fix the issue of back not working for the first few pages?

Alan
It's impossible for that issue to exist with this version. I believe the code handling the graphic display of the button was causing that. This version does not have any graphical elements and is simply looking for the edges of the screen to be touched.
Nightburn is offline   Reply With Quote
Old 09/21/2011, 03:51 AM   #4 (permalink)
Member
 
Sanjay's Avatar
 
Join Date: May 2002
Location: NCR, India
Posts: 1,907
Likes Received: 304
Thanks: 20
Thanked 172 Times in 141 Posts
Default

I think this patch is a great idea. Except that I would prefer that a swipe 'out to the left', should be 'back' and a swipe 'out to the right', should be forward. If 'swiping out' is not technically possible, then alternately, swipe 'in from the right' should be back and 'swipe in from the left' should be forward. Thanks.
__________________
Pre3 (AT&T meta-doctored to ROW) webOS 2.2.4 build 3175
TouchPad WiFi (32GB) - webOS 3.0.5 build 86
App Catalog (US) - Vodafone (India)

Treo 180 > 270 > 600 > 650 > 680 > Pre+ > Pre2 > Pre+ > Pre3 & tPad
Sanjay is offline   Reply With Quote
Old 09/21/2011, 03:53 AM   #5 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

Quote:
Originally Posted by Sanjay View Post
I think this patch is a great idea. Except that I would prefer that a swipe 'out to the left', should be 'back' and a swipe 'out to the right', should be forward. If 'swiping out' is not technically possible, then alternately, swipe 'in from the right' should be back and 'swipe in from the left' should be forward. Thanks.
I can make and inverted version of this patch for you.. but "swiping out" is definitely not possible as we have no true "gesture area" like we do on the phones with webOS.

Edit: Sanjay, I've added an inverted version of the patch for you.

Last edited by Nightburn; 09/21/2011 at 03:58 AM. Reason: Added inverted patch
Nightburn is offline   Reply With Quote
Old 09/21/2011, 09:48 AM   #6 (permalink)
Member
 
Join Date: Aug 2005
Posts: 127
Likes Received: 5
Thanks: 6
Thanked 6 Times in 6 Posts
Default

how do I get the inverted patch?
gamoses is offline   Reply With Quote
Old 09/21/2011, 12:31 PM   #7 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

Quote:
Originally Posted by gamoses View Post
how do I get the inverted patch?
I've re-added the download links back, you can use my version or download "Simple Browser Gestures" directly from Preware.
Nightburn is offline   Reply With Quote
Old 09/21/2011, 12:54 PM   #8 (permalink)
Member
 
Join Date: Aug 2011
Posts: 1,923
Likes Received: 205
Thanks: 21
Thanked 196 Times in 143 Posts
Default

I absolutely lovethis. Now if the browser would actually load pages from the cache quickly, it'd be freaking amazing.

-- Sent from my HP TouchPad using Communities
__________________
GVoice for all webOS devices - for PlayBook - GVoiceA for Android
XO - The Subsonic Media Commander - webOS Demo and Full version and PlayBook full version available
- Ask500, the webOS polling app


(1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
eblade is offline   Reply With Quote
Old 09/21/2011, 02:01 PM   #9 (permalink)
Member
 
Sanjay's Avatar
 
Join Date: May 2002
Location: NCR, India
Posts: 1,907
Likes Received: 304
Thanks: 20
Thanked 172 Times in 141 Posts
Default

Quote:
Originally Posted by Nightburn View Post
I can make and inverted version of this patch for you.. but "swiping out" is definitely not possible as we have no true "gesture area" like we do on the phones with webOS.

Edit: Sanjay, I've added an inverted version of the patch for you.
Thanks a lot. Your effort is much appreciated.

PS: Just for my understanding, why would a 'swipe out' not be possible? After all the same logic that works for a 'swipe in' should apply to the 'swipe out' too, right?
__________________
Pre3 (AT&T meta-doctored to ROW) webOS 2.2.4 build 3175
TouchPad WiFi (32GB) - webOS 3.0.5 build 86
App Catalog (US) - Vodafone (India)

Treo 180 > 270 > 600 > 650 > 680 > Pre+ > Pre2 > Pre+ > Pre3 & tPad
Sanjay is offline   Reply With Quote
Old 09/21/2011, 02:58 PM   #10 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

Quote:
Originally Posted by Sanjay View Post
Thanks a lot. Your effort is much appreciated.

PS: Just for my understanding, why would a 'swipe out' not be possible? After all the same logic that works for a 'swipe in' should apply to the 'swipe out' too, right?
This patch simply looks at the first 7 pixels on the edge of screen. If any of those pixels are touched it fires off the back or forward command. With only 7 pixels to work with, it's not possible to track any movement, capacitive touch screens just aren't accurate enough. We would have to increase the used pixels to probably at least 50 pixels before we could accurately track swipe movement and at that point we're using too much screen space and greatly complicating this patch. Anything under an enlarged overlay would also no longer be clickable.

It's too bad HP didn't make the entire bezel touch sensitive like the palm phones.
Nightburn is offline   Reply With Quote
Old 09/21/2011, 05:21 PM   #11 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

How about a slightly modified version of the swipe up the touchpad uses? The same logic of detecting an upward gesture (sideways in this case) but monitoring distance and triggering the back/forward system event when the touch point has traveled x amount of pixels.
ShiftyAxel is offline   Reply With Quote
Old 09/21/2011, 11:16 PM   #12 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

Quote:
Originally Posted by ShiftyAxel View Post
How about a slightly modified version of the swipe up the touchpad uses? The same logic of detecting an upward gesture (sideways in this case) but monitoring distance and triggering the back/forward system event when the touch point has traveled x amount of pixels.
I'm almost certain the upswipe code is a pre-compiled low level function of webOS. Which means, there is no editing it, or creating an improved variation. We only have enyo and css to work with here and there are some limitations.

I'll take some time to absorb the browser source code a bit more. I do have some of my own ideas, nothing concrete though. In the meantime, if I'm mistaken about the upswipe code, someone please point me to the relevant files.
Nightburn is offline   Reply With Quote
Old 09/22/2011, 07:08 AM   #13 (permalink)
Member
 
Join Date: Mar 2008
Posts: 43
Likes Received: 10
Thanks: 3
Thanked 3 Times in 3 Posts
Default

I can't install. Here is the error


Begin
Nothing Interesting.
Download
% Total % Received % Xferd Average Speed Time Time Time Current
50 11144 50 5595 0 0 6708 0 0:00:01 --:--:-- 0:00:01 6958
100 11144 100 11144 0 0 13306 0 --:--:-- --:--:-- --:--:-- 13792
Identify
org.webosinternals.patches.browser-simple-browser-gestures
Install
{"returnValue":true , "ticket":3, "subscribed":true}
{ "ticket":3 , "status":"STARTING" }
{ "ticket":3 , "status":"CREATE_TMP" }
{ "ticket":3 , "status":"VERIFYING" }
{ "ticket":3 , "status":"IPKG_INSTALL" }
{ "ticket":3 , "status":"SUCCESS" }
Mkdir-Prerm
Nothing Interesting.
Install-Prerm
Nothing Interesting.
Postinst
-1: Unable to run command: IPKG_OFFLINE_ROOT=/media/cryptofs/apps /bin/sh /media/cryptofs/apps/usr/lib/ipkg/info/org.webosinternals.patches.browser-simple-browser-gestures.postinst 2>&1
1 out of 1 hunk FAILED -- saving rejects to file usr/palm/applications/com.palm.app.browser/css/browser.css.rej
1 out of 1 hunk FAILED -- saving rejects to file usr/palm/applications/com.palm.app.browser/source/Browser.js.rej
Remove
Removing package org.webosinternals.patches.browser-simple-browser-gestures from root...
(offline root mode: not running org.webosinternals.patches.browser-simple-browser-gestures.prerm)
Delete
Nothing Interesting.
Failed
Nothing Interesting.




-- Sent from my HP TouchPad
-- Sent from my HP TouchPad using Communities
zenkinz is offline   Reply With Quote
Old 09/22/2011, 08:25 AM   #14 (permalink)
Member
 
Join Date: Sep 2011
Posts: 97
Likes Received: 23
Thanks: 12
Thanked 27 Times in 16 Posts
Default

I installed it through PreWare but it seems to be the inverted version (when I swipe on the right side it goes back, left side forward). Is that correct? So which version do I have to install? The normal or the inverted to have back on the left and forward on the right side of the screen?

Could you make a version for Advanced Browser too?

EDIT: Oh... hehe... It seems I did install the patch from the other guy
But nonetheless I prefer the opposite direction.. thanks to both of you

Last edited by dodnet; 09/22/2011 at 08:31 AM.
dodnet is offline   Reply With Quote
Old 09/22/2011, 01:13 PM   #15 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

zenkinz,
This patch will fail on install if you have other browser modification patches installed. Possible conflicting patches include but not limited to:
Powerswipe
Simple Browser Gestures
Add ThumbNav Controls
Nightburn is offline   Reply With Quote
Old 09/22/2011, 01:34 PM   #16 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

I've submitted an inverted version to Garrett92C's "Simple Browser Gestures" patch to Preware. It should be titled "Simple Browser Gestures Inverted" and hopefully will show up in the feeds soon. This version will go back when you swipe from the left edge of the screen and go forward when you swipe from the right edge.
Nightburn is offline   Reply With Quote
Old 09/22/2011, 02:57 PM   #17 (permalink)
Forum Moderator
 
ChemEngr's Avatar
 
Join Date: Nov 2002
Location: Silicon Valley
Posts: 2,235
Likes Received: 13
Thanks: 158
Thanked 97 Times in 90 Posts
Default

Advanced Browser version pretty please?!
__________________
Palm III > Palm V > Palm Vx > (Sprint) Kyo 6035 > Handspring Treo 300
> Handspring Treo 600 Oct.'03 > Palm Treo 700P May'06 > Treo 755P Aug.'07 > Pre(-) June'09 + TouchPad July'11 LONG LIVE webOS!!!
ChemEngr is offline   Reply With Quote
Old 09/22/2011, 03:21 PM   #18 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

Quote:
Originally Posted by ChemEngr View Post
Advanced Browser version pretty please?!
hmm I haven't purchased advanced browser yet but since you said please I'll see what I can do.
Nightburn is offline   Reply With Quote
Old 09/22/2011, 03:41 PM   #19 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

Quote:
Originally Posted by ChemEngr View Post
Advanced Browser version pretty please?!
After further consideration, I've decided I probably shouldn't release a patch for the 3rd party browser "Advanced Browser". You're probably better off requesting this particular feature directly from the developer. You might find he's receptive ?
Nightburn is offline   Reply With Quote
Old 09/23/2011, 05:22 PM   #20 (permalink)
Member
 
Nightburn's Avatar
 
Join Date: Jun 2009
Location: Portland, OR
Posts: 469
Likes Received: 22
Thanks: 186
Thanked 110 Times in 80 Posts
Default

New tweaks enabled version available:
http://forums.precentral.net/webos-p...-touchpad.html

This thread should be closed!

Last edited by Nightburn; 09/23/2011 at 06:03 PM.
Nightburn is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0