Re: Mouse wheel customization
[EMAIL PROTECTED] (Nick V. Pakoulin) writes: | The question is: how i can change the amount of text, scrolled using mouse | wheel? Now wheel scrolls one screen up/down, but i'd like to scroll | 3-5 lines. This can only be changed in the sources. BufferView.C or WorkArea.C Lgb
Re: Mouse wheel customization
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: [EMAIL PROTECTED] (Nick V. Pakoulin) writes: | The question is: how i can change the amount of text, scrolled using mouse | wheel? Now wheel scrolls one screen up/down, but i'd like to scroll | 3-5 lines. This can only be changed in the sources. BufferView.C or WorkArea.C Thanks for hint, it is in BufferView_pimpl.C void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos, unsigned int button) I found a magic number 100 there (line 548): what does it mean? // ok ok, this is a hack. if (button == 4 || button == 5) { switch (button) { case 4: scrollUp(100); // This number is only temporary break; case 5: scrollDown(100); break; } } What value it should be for a half of the screen? Or 5 lines? I really don't want to find it out by cyt-and-try method or deep LyX hacking, so ... looking forward to your answer ... ;)) Lgb TIA, Nick.
Re: Mouse wheel customization
[EMAIL PROTECTED] (Nick V. Pakoulin) writes: | Thanks for hint, it is in BufferView_pimpl.C | | void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos, | unsigned int button) | | I found a magic number 100 there (line 548): what does it mean? | // ok ok, this is a hack. | if (button == 4 || button == 5) { | switch (button) { | case 4: | scrollUp(100); // This number is only temporary | break; | case 5: | scrollDown(100); | break; | } | } | | What value it should be for a half of the screen? Or 5 lines? I really don't | want to find it out by cyt-and-try method or deep LyX hacking, so ... looking | forward to your answer ... ;)) You guess is (almost) as good as mine, just try with some different values, smaller ones probably. Lgb
Re: Mouse wheel customization
[EMAIL PROTECTED] (Nick V. Pakoulin) writes: | The question is: how i can change the amount of text, scrolled using mouse | wheel? Now wheel scrolls one screen up/down, but i'd like to scroll | 3-5 lines. This can only be changed in the sources. BufferView.C or WorkArea.C Lgb
Re: Mouse wheel customization
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: [EMAIL PROTECTED] (Nick V. Pakoulin) writes: | The question is: how i can change the amount of text, scrolled using mouse | wheel? Now wheel scrolls one screen up/down, but i'd like to scroll | 3-5 lines. This can only be changed in the sources. BufferView.C or WorkArea.C Thanks for hint, it is in BufferView_pimpl.C void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos, unsigned int button) I found a magic number 100 there (line 548): what does it mean? // ok ok, this is a hack. if (button == 4 || button == 5) { switch (button) { case 4: scrollUp(100); // This number is only temporary break; case 5: scrollDown(100); break; } } What value it should be for a half of the screen? Or 5 lines? I really don't want to find it out by cyt-and-try method or deep LyX hacking, so ... looking forward to your answer ... ;)) Lgb TIA, Nick.
Re: Mouse wheel customization
[EMAIL PROTECTED] (Nick V. Pakoulin) writes: | Thanks for hint, it is in BufferView_pimpl.C | | void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos, | unsigned int button) | | I found a magic number 100 there (line 548): what does it mean? | // ok ok, this is a hack. | if (button == 4 || button == 5) { | switch (button) { | case 4: | scrollUp(100); // This number is only temporary | break; | case 5: | scrollDown(100); | break; | } | } | | What value it should be for a half of the screen? Or 5 lines? I really don't | want to find it out by cyt-and-try method or deep LyX hacking, so ... looking | forward to your answer ... ;)) You guess is (almost) as good as mine, just try with some different values, smaller ones probably. Lgb
Re: Mouse wheel customization
[EMAIL PROTECTED] (Nick V. Pakoulin) writes: | The question is: how i can change the amount of text, scrolled using mouse | wheel? Now wheel scrolls one screen up/down, but i'd like to scroll | 3-5 lines. This can only be changed in the sources. BufferView.C or WorkArea.C Lgb
Re: Mouse wheel customization
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > [EMAIL PROTECTED] (Nick V. Pakoulin) writes: > > | The question is: how i can change the amount of text, scrolled using mouse > | wheel? Now wheel scrolls one screen up/down, but i'd like to scroll > | 3-5 lines. > > This can only be changed in the sources. > > BufferView.C or WorkArea.C Thanks for hint, it is in BufferView_pimpl.C void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos, unsigned int button) I found a magic number 100 there (line 548): what does it mean? // ok ok, this is a hack. if (button == 4 || button == 5) { switch (button) { case 4: scrollUp(100); // This number is only temporary break; case 5: scrollDown(100); break; } } What value it should be for a half of the screen? Or 5 lines? I really don't want to find it out by cyt-and-try method or deep LyX hacking, so ... looking forward to your answer ... ;)) > > Lgb TIA, Nick.
Re: Mouse wheel customization
[EMAIL PROTECTED] (Nick V. Pakoulin) writes: | Thanks for hint, it is in BufferView_pimpl.C | | void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos, | unsigned int button) | | I found a magic number 100 there (line 548): what does it mean? | // ok ok, this is a hack. | if (button == 4 || button == 5) { | switch (button) { | case 4: | scrollUp(100); // This number is only temporary | break; | case 5: | scrollDown(100); | break; | } | } | | What value it should be for a half of the screen? Or 5 lines? I really don't | want to find it out by cyt-and-try method or deep LyX hacking, so ... looking | forward to your answer ... ;)) You guess is (almost) as good as mine, just try with some different values, smaller ones probably. Lgb