Re: [code] [textadept] scroll wheel + change view bug

From: Gabrielm Dubatti <gdubatti.att.gmail.com>
Date: Sun, 3 Apr 2016 22:10:07 -0300

The issue was caused by a call to

     buffer.home()

inside the event VIEW_AFTER_SWITCH, commenting that line solve the problem.

BTW, my complete setup is hosted in https://github.com/gabdub/ta-tweaks
(some screen captures are included)

Best regards,
Gabriel

El 03/04/16 a las 21:33, Mitchell escribió:
> Hi Gabriel,
>
> On Sat, 2 Apr 2016, Gabrielm Dubatti wrote:
>
>> Hi,
>>
>> I just noticed that when you scroll a document using the mouse
>> wheel in a view that "is not the current one", when you click on that
>> view, the scroll position is lost and a wrong row ends up selected.
>>
>> This works fine if there is only one view or you scroll in the
>> current view.
>>
>> I'm currently running v8.6 stable on Ubuntu 14.04.
>>
>> Just tell me if more info is needed.
>
> That's odd. I cannot reproduce this on my Ubuntu machine. I am using
> the mouse to scroll in a "non-main" view and when I click on it, that
> view is focused and the caret placed at the position I clicked. I get
> the same behavior even if the separate views contain the same file.
>
> I'm not sure what the problem is :( Can you think of anything in your
> ~/.textadept/init.lua that may be causing trouble?
>
> Cheers,
> Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 03 Apr 2016 - 21:10:07 EDT

This archive was generated by hypermail 2.2.0 : Mon 04 Apr 2016 - 06:42:12 EDT