Touch scrolling with Raspberry Pi

spiritcore
2021-06-16
2022-07-27
  • spiritcore - 2021-06-16

    Hi,
    I'm using Codesys v3.5 SP17.
    I have a project with Web Visualization and it works OK on Chromium with kiosk mode.
    The problem is that I can't scroll a frame with the touch screen, I can only click on the position of the scroll bar and it changes but not scrolling as it should on touch.
    I do have all the Chormium flags and it seems to work on any other website (tried google search results and more) only on the WebVisu it doesn't so it leads me to believe that the issue is with Codesys and not with Chormium.
    The frame has scrolling enabled in the settings of course and I enabled the multitouch on the Visualization manager.
    Any help would be appreciated.
    Thanks!

     
  • m.prestel - 2021-06-30

    Hey,
    If you get scrollbars in a frame when you have multitouch enabled, your browser reports that it does not support any multitouch events.
    Therefore the visualization falls back to a mouse only behaviour.

    This should also be visible in the browser console log, which should report this information.

    Best regards,
    Marcel

     

    Last edit: m.prestel 2021-06-30
    • spiritcore - 2021-07-01

      I do have scrollbars actually.
      But I enabled touch events in the browser and it does work with other websites, only in the WebVisu it doesn't.

       
  • m.prestel - 2021-07-01

    Whats the output of the console?

     
  • spiritcore - 2021-07-01

    No output that relates to this.
    I see error messages because I updated the compiled softwre so the local WebVisu is trying to reconnect.

     
  • spiritcore - 2021-07-01

    I unchecked the "Scroll elements with scrollbar" and it seems to be working now (altough not smooth like other websites).
    Thanks!

     
  • spiritcore - 2021-07-01

    BTW, Is it possible to make scroll when touching other elements in the frame?
    I have many labels but when I try touching those when trying to scroll it doesn't work, only when I touch an empty spot on the frame.

     
  • m.prestel - 2021-07-01

    If this element has any input action, this will of course be prioritized. e.g. a button click is always more important than moving the frame

     
  • spiritcore - 2021-07-01

    My labels doesn't have any input action.
    Just plain text...

     
  • m.prestel - 2021-07-01

    Tooltip? Anything like that?

     
  • spiritcore - 2021-07-01

    No, only lables.
    But the labels are in a group with buttons, is it possible that it affects the labels?

     
  • m.prestel - 2021-07-01

    Could be. Not sure to be honest from the top of my head.

     
  • spiritcore - 2021-07-01

    Ok. I will try to ungroup the elements and test.

     
  • m.prestel - 2021-07-01

    IF the issue still exists, you could attach your project and provide Steps to repeat for me do look into it ;)

     
  • spiritcore - 2021-07-05

    Ok, I found a solution using the Bring to Foreground option.

     
    • surikan - 2022-07-26

      Hi Spiritcore,
      Could you be a bit more specific on this one. What element did you bring to the foreground? Is it your hidden menu buttons?
      I think I have a similar problem I have a rectangle as a background with no inputs configured yet I cannot scroll the frame via touch. When the rectangle is removed then it is possible to scroll. I have no luck bringing elements to foreground.

       
      • spiritcore - 2022-07-27

        It's a frame.
        I created the menu in a separate visualization and then inserted in the main screen as a frame.
        Then I have a simple logic that moves the menu from the left and brings it forward using variables.

         

Log in to post a comment.