iosscripts / iosslider

iosslider is a jQuery plugin which allows you to integrate a customizable, cross-browser content slider into your web presence. Designed for use as a content slider, website banner, or image gallery.
http://iosscripts.com/iosslider
432 stars 103 forks source link

Option to make certain areas within a slide unselectable. #26

Closed iosscripts closed 12 years ago

iosscripts commented 12 years ago

This would be useful for making a portion of a slide's inner text to be highlight-able/copy/paste friendly. This option would accept a jQuery selector, those selected elements would override the slide functionality when touched, the slider would do nothing and the content would revert back to default browser behavior.

acentofante commented 12 years ago

Anyway this is coming soon? Using this awesome plugin for a fullscreen sliding website and would need some areas like forms and buttons to be clickable. Thanks!

iosscripts commented 12 years ago

Not too hard to implement I don't think... I can prioritize it.

Don't forget to buy a license if it's a commercial project :P

acentofante commented 12 years ago

awesome, was going to wait to buy as I am still juggling technologies for this project. originally was going to go with this one until I realized not being able to click was a deal breaker. Thanks for being quick to respond.

On Wed, Jul 25, 2012 at 2:50 PM, Marc Whitbread < reply@reply.github.com

wrote:

Not too hard to implement I don't think... I can prioritize it.

Don't forget to buy a license if it's a commercial project :P


Reply to this email directly or view it on GitHub: https://github.com/iosscripts/iosSlider/issues/26#issuecomment-7258203

iosscripts commented 12 years ago

Hey, no worries. I wouldn't want you to buy it if it wasn't exactly what you are looking for anyway :).

On Jul 25, 2012, at 4:19 PM, acentofante wrote:

awesome, was going to wait to buy as I am still juggling technologies for this project. originally was going to go with this one until I realized not being able to click was a deal breaker. Thanks for being quick to respond.

On Wed, Jul 25, 2012 at 2:50 PM, Marc Whitbread < reply@reply.github.com

wrote:

Not too hard to implement I don't think... I can prioritize it.

Don't forget to buy a license if it's a commercial project :P


Reply to this email directly or view it on GitHub: https://github.com/iosscripts/iosSlider/issues/26#issuecomment-7258203


Reply to this email directly or view it on GitHub: https://github.com/iosscripts/iosSlider/issues/26#issuecomment-7260785

acentofante commented 12 years ago

oh and while I have your ear, would it be easy to add a hashtag to the url to allow for browser forward and back? I was thinking it would use the onSlideComplete somehow.

Andrew

On Wed, Jul 25, 2012 at 4:28 PM, Marc Whitbread < reply@reply.github.com

wrote:

Hey, no worries. I wouldn't want you to buy it if it wasn't exactly what you are looking for anyway :).

On Jul 25, 2012, at 4:19 PM, acentofante wrote:

awesome, was going to wait to buy as I am still juggling technologies for this project. originally was going to go with this one until I realized not being able to click was a deal breaker. Thanks for being quick to respond.

On Wed, Jul 25, 2012 at 2:50 PM, Marc Whitbread < reply@reply.github.com

wrote:

Not too hard to implement I don't think... I can prioritize it.

Don't forget to buy a license if it's a commercial project :P


Reply to this email directly or view it on GitHub: https://github.com/iosscripts/iosSlider/issues/26#issuecomment-7258203


Reply to this email directly or view it on GitHub: https://github.com/iosscripts/iosSlider/issues/26#issuecomment-7260785


Reply to this email directly or view it on GitHub: https://github.com/iosscripts/iosSlider/issues/26#issuecomment-7261024

iosscripts commented 12 years ago

@acentofante Do you mean overriding the back/forward browser functionality? That isn't supported by this script. You could add a hash onSlideComplete though:

$('.iosSlider').iosSlider({
    onSlideComplete: slideComplete
});

function slideComplete(args) {

    window.location.href = '#page-' + args.currentSlideNumber

}
acentofante commented 12 years ago

I guess I dont understand this well enough because what you provided definitely worked to add the hashtag but did make the browser forward and back button trigger anything. I probably wont be able to figure this out but its not a big deal. Thanks for your help.

On Thu, Jul 26, 2012 at 9:47 AM, Marc Whitbread < reply@reply.github.com

wrote:

@acentofante Do you mean overriding the back/forward browser functionality? That isn't supported by this script. You could add a hash onSlideComplete though:

$('.iosSlider').iosSlider({
        onSlideComplete: slideComplete
});

function slideComplete(args) {

        window.location.href = '#page-' + args.currentSlideNumber

}

Reply to this email directly or view it on GitHub: https://github.com/iosscripts/iosSlider/issues/26#issuecomment-7277953

iosscripts commented 12 years ago

v1.0.24 has a new parameter 'unselectableSelector', which accepts a jQuery selection of objects and disables touch/click move events on them, allowing for click+drag/input fields/buttons to be used safely.

Also, I am aware how terrible the parameter name is... LOL

acentofante commented 12 years ago

Hey Marc,

Having trouble implementing this. It seems to disable the drag functionality but doesn't allow for selection/fields/buttons. It also doesn't work on child elements so I have to add this class to every element.

iosscripts commented 12 years ago

Try version 1.0.27. All child elements are now automatically included under the selection for 'unselectableSelector'. I have also fixed the issue with input elements becoming unresponsive. Let me know if you are still experiencing issues.

kevinsmith22 commented 11 years ago

Hello Marc, I'm experiencing some issues using HTML5 range input: with unselectable disabled no access to the element, while with unselectable enabled the elements keeps the focus (and moving) after mouse up. Can you confirm this behaviour?

iosscripts commented 11 years ago

@kevinsmith22 I haven't tested it before actually but I just tested it and can confirm this behavior on my end. I will open a new issue and track it there. https://github.com/iosscripts/iosSlider/issues/170