Giter VIP home page Giter VIP logo

Comments (5)

Petterpx avatar Petterpx commented on May 23, 2024 1

在设计之处,IFxScrollListener 只是用于在浮窗拖动时的回调,当用户禁用了浮窗移动后,这个接口自然不会收到回调,您要做的应该是监听浮窗内的手势,而浮窗本身是不需要移动的。
为了做到浮窗移动,事件是完全被浮窗拿走了,所以在设计时没有考虑浮窗禁用时内部触摸事件的反馈。
这的确是设计上缺陷,本应该提供一个出口,可以自行处理事件,周末我会出一个api解决这个问题。

from floatingx.

likfe avatar likfe commented on May 23, 2024

目前我的方式是,禁用 setEnableTouch(false) ,然后重写布局的根 ViewGroup 的 onTouchEvent() 事件,自行处理用户的手势了。

from floatingx.

Petterpx avatar Petterpx commented on May 23, 2024

当然如果您有更好的方式也可以fork进行更改,非常欢迎一起维护这个库。
PS:最近因为拔牙缝线的身体原因,一直没能及时看到issues,回复略迟,不好意思

from floatingx.

Petterpx avatar Petterpx commented on May 23, 2024

试试rc14,IFxScrollListener新增了eventIng(MotionEvent)用于接收当前浮窗所有事件,修改dragIng()方法,增加了MotionEvent参数。appcompat降级到了1.2,无需手动引入kt和appcompat,修改了依赖方式。

from floatingx.

Petterpx avatar Petterpx commented on May 23, 2024

image

from floatingx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.