Git Product home page Git Product logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
This is a very good idea.  I'll try to make it happen for 1.0.

Original comment by [email protected] on 29 Aug 2007 at 2:39

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from iphoneebooks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
This is looking to be very difficult, unfortunately--there's no way that I can 
find to determine how large the 
Scroller view is, which means I can't get a percentage of the view, and 
likewise I can't tell where a percentage of 
the text would fall.  What I may do instead is add "superscroll" buttons, which 
would allow you to jump by, say, 
ten screenfulls.  Would this do?

Original comment by [email protected] on 30 Aug 2007 at 2:45

from iphoneebooks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Is it possible to simply count the number of bytes in the text? Or is there any 
other method that counts the text, even roughly?

As bottom line, yes, I think ten-screenful jump will work.

Let's do some simple maths. Take a 500KB txt file as example (it's almost the 
largest single file size without freezing the app), it contains 250K chinese 
characters. Usually I have about 200 ~ 250 chinese character per screen, so the 
entire file is split into about 1000 pages. To scroll to 50% of the book, which 
is 
500 pages, I need to tap on "superscroll" 50 times. That should be OK.

Please make sure if I tap superscroll quickly one after the other, the 2nd tap 
doesn't cancel the previous scrolling. In current version, if I tap the bottom 
of 
screen too quickly, the 2nd tap cancels the first one. This made fast scrolling 
impossible.

Thanks!

Original comment by [email protected] on 30 Aug 2007 at 6:40

from iphoneebooks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
It's certainly possible to get the length of the text.  The problem is that the 
UITextView doesn't scroll by text, but 
by pixels, and there's no way (that I can find) to match pixels with text.  So 
even if I knew where 50% was in the 
text (trivial, of course) I don't know where it lies in the rendered view (or 
even how large the rendered view is).

There is one possible solution, but it's horribly ugly.  I'll keep you posted.

Original comment by [email protected] on 30 Aug 2007 at 5:54

from iphoneebooks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Another aspect / tack you might want to try is take a look at how the iPhone's
contact list allows you to scroll - and see if perhaps that gives any clues?

I'm a coding idiot, and completely okay with that. :)

Original comment by [email protected] on 4 Sep 2007 at 5:59

from iphoneebooks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I just want to add my 2cents here. A super scrolling or chapter / search 
function is
all I am pining for in this app. Thanks so much for this. I am a big eBook 
reader and
am thankful to have this on my iphone.

Original comment by [email protected] on 14 Sep 2007 at 3:05

from iphoneebooks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024

Original comment by [email protected] on 5 Oct 2007 at 6:59

  • Added labels: Priority-High
  • Removed labels: Priority-Medium

from iphoneebooks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I just posted to the SVN a hideable slider which will allow you to scroll from 
the beginning to the end virtually 
instantly.  It will be in the next release.

Original comment by [email protected] on 8 Oct 2007 at 1:55

  • Changed state: Fixed

from iphoneebooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.