#687 Problem with touch-screen PCs

None
open
nobody
None
1
2 days ago
2014-03-23
Anonymous
No

There's a pretty big issue I've found when with using touch-screen PCs (tested on the new Surface Pro 2 running Windows 8.1).

A little background: In almost all applications (office, internet browser, PDF viewer, etc.) you can use your finger to scroll by dragging or sliding your finger across the page. This makes navigating a document easier than having to touch the tiny scroll bar on the right-hand side. If instead you want to work on editing the document, just "click" by tapping in one place and you're ready to type. Or alternatively use the pen. But using your finger to slide up and down the page normally scrolls up and down like usual.

This has support in every program I've used for Windows except Texstudio. In Texstudio however, it is strangely interpreting my finger as a pen and selecting text when I drag my finger across my document instead of scrolling. I imagine there should be a simple fix for this, as virtually every other program I've run on the desktop (especially document readers, word processors like Microsoft Word, etc.) has support for this.

Thank you!

Discussion

  • Tim Hoffmann
    Tim Hoffmann
    2014-03-23

    Afaik none of the developers has a windows touch device. Therefore we cannot develop and test touch functionality.

    If you have a bit of programming background, you are welcome to join hand help with that feature.

     
    • perhaps we just have to enable the /Qt/::/WA_AcceptTouchEvents/ flag

       
      Attachments
  • Tim Hoffmann
    Tim Hoffmann
    2014-03-25

    I've now set the flag for the Editor and the PDF viewer (hg 4341 (50f3c5bdec8b)) but I cannot test it. -> Need to wait for the release of the next development snapshot and someone willing to test.

     
  • Ethan Davis
    Ethan Davis
    2014-03-25

    Thanks for your reply! Unfortunately I have no programming background (aside from LaTeX!) however if there's something I could help you out with on my Surface Pro 2, (e.g. with testing or if there's something more difficult you can walk me through), please let me know and I would be honored to help you out with improving your software! Thank you!

     
  • Tim Hoffmann
    Tim Hoffmann
    2014-03-25

    I've uploaded a current development snapshot containing the change: link

    You are welcome to try it.

     
  • Ethan Davis
    Ethan Davis
    2014-03-25

    Hi, thanks again for your reply! I downloaded and installed the 2.7.1 version you linked to. Doesn't appear to have fixed it -- but to try to clarify what's happening with a touch device I recorded a video with my cell phone (I apologize for the poor quality, very low-res video) so you could see how I interact with it. I attached the video to this message so hopefully you can view it and see what's happening.

    Thanks,
    Ethan

     
  • Tim Hoffmann
    Tim Hoffmann
    2014-03-26

    Sorry, it was a quick try, but without any hardware for testing it's not possible to go any further.

     
  • The interesting thing in the video is that it works in the PDF viewer

    Both use QAbstractScrollArea, the only difference seems to be that the viewport of the viewer has a child (of the size of the pdf?), while the editor kind of ignores the viewport, just sets the scrollbar size and draws over the viewport

     
  • Ethan Davis
    Ethan Davis
    2014-03-29

    Yes! This may be some helpful info: I should note it works in TexStudio's PDF viewer when the "hand" icon is selected.

    Sorry for the video quality -- please let me know if you would like like me to re-record or if there's any other way I can help.

    Thanks!

     
  • I should note it works in TexStudio's PDF viewer when the "hand" icon is selected.

    Does it also work in the pdf viewer, when "continuous" scrolling is disabled

    But I am definitely willing to try to help with testing and in any other way I can if you walk me through what I need to do.

    You can try to compile (https://sourceforge.net/apps/mediawiki/texstudio/index.php?title=CompileTXS#Windows) it from this branch: https://sourceforge.net/p/texstudio/hg/ci/touchscrolling/tree/

    (there I changed the editor to be more like the pdf viewer)

     
  • Tim Hoffmann
    Tim Hoffmann
    2014-04-13

    Ticket moved from /p/texstudio/bugs/943/

     
  • Ethan Davis
    Ethan Davis
    2014-08-18

    Hello! I just wanted to write back and tell you I am still extremely interested in this feature. All other Windows software I currently use support this. That the editor currently highlights/selects text rather than scrolling with the finger is troublesome and makes Latex editing very difficult.

    Yes, the pdf viewer works with touch, scrolling just fine no matter what I check and uncheck under "Configure" in the windowed viewer. I followed the link you sent me, but I'm not sure what to do with it. I clicked "Download Snapshot" which gave me a zip file to download. I unzipped it but didn't know what to do with the files and folders inside. Please let me know how I can assist you guys, and I would be glad to help troubleshoot as we solve this issue!

    I showed this issue to some other professors and faculty members I work with at the university. One of them is a coder for Java-based math software and she said the issue is that there's not been a "touch event" assigned. That is, the software registers my touch as a "click", which is why scrolling with my finger results in the software understanding my input as "click" and then "drag". She said that creating a "touch" event for the text editor would fix the problem.

    Thank you for your time and consideration. This feature is very important for touch users. I'm not talking about people on iPads. But I do mean serious academics and professionals who have replaced their laptops with tablet computers running full Windows software. In my case, I've replaced both my desktop and laptop with the Microsoft Surface Pro 2. It runs Windows 8.1 and any software I would ever want, no different than my former desktop computer. The only difference is how I interact with the device. Touch scrolling is a very valuable feature and I know with a little bit of time we can figure this out and set the stage and create value for many other users in the future!

    Thank you very much!
    Ethan Davis

     
  • Christoph
    Christoph
    4 days ago

    I just want to say that I'm experiencing the same issue on my Surface Pro 3 and am looking forward to this being fixed sone time soon. Ethan's explanation regarding the missing definition of a "touch event" makes sense to me. If one of the developers wants to give this a try, I'd also be willing to test the resulting built. Unfortunately, I don't have a programming background either.
    Thanks!
    Christoph

     
  • Ethan Davis
    Ethan Davis
    4 days ago

    Hi Christoph,

    Thanks for your reply. I too have upgraded from my Surface Pro 2 to the new Surface Pro 3. Unfortunately, TeXStudio still hasn't fixed this bug with touch (my offer is still open to help them in any way possible, although I am a novice programmer aside from than LaTeX).

    Thankfully, more modern LaTex editors like Overleaf (www.overleaf.com) have proper touch support.

    Cheers,
    Ethan

     
    Last edit: Ethan Davis 4 days ago