Use wheel for scrolling TextBox [Resolved]

Use wheel for scrolling TextBox [Resolved]

BY 23 Mar 2018 Web Application Development

Hello at all,

I’m new in this forum, and it’s my first question.

 Since the begining that i create my little app, i search and this forum help me very much for that, but this time i have not found a simple solution for do that :- (

I can scroll the texte with my finger, but impossible to do that with the watch wheel

I use this code for fill the textbox (Sorry, impossible to put the code in the code tag of this forum, with FF and IE)

 

tizen.filesystem.resolve(“documents”,
            function(dir)
            {
                var file = dir.resolve(“MyFile.txt”);

                file.openStream(
                    “r”,
                    function(fs)
                    {
                        var Text = fs.read(file.fileSize);
                        fs.close();
                        var textbox = document.querySelector(‘.contents’);
                        var box = document.querySelector(‘#textbox’);
                        box.innerHTML = Texte ;
                     },
                    function(e)
                    {
                        console.log(“Error ” + e.message);
                    }, “UTF-8”);

            }
        );

 

If someone have a simple solution, because i’m a true beginner, i have my since only one week 😉

Have a good day

Written by