Jump to content
Search Community

mimeartist

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by mimeartist

  1. I've got a DIV that is draggable... lets calls it projectBoard1

     

    when I drag it, and then try and revert it's position e.g.

     

    TweenMax.to('#projectBoard1', projectSpeed, { top: 0, left:15 });

     

    it doesn't tween, and the only way I can think of doing it is by using CSS

     

    $('#projectBoard1').css({top:0, left:15});

     

    Is there something to do with once it's been dragged? or possibly some bounds or something?

     

    Sorry I've not been able to post any code, it's a big project, and just wondered if someone had an idea offhand what I should be looking at... thank you

  2. I'm linking to all the files for what I assume I need... as below...

     

    <script src="js/ThrowPropsPlugin.min.js"></script>
     
    Note: You'll see I'm using the throwProps on my server, as it's important I get the inertia for dragging items... am I doing this correctly as the inertia isn't working like the demos... thought I'd check I'm using all th right components first before hacking the code... Is throw props actually included in draggable.min.js etc?
  3. Hi,

     

    I'm absolutely loving your work... it's really making things so much simpler for me...

     

    However I've got an issue... I've got  a group of panels that you can drag around... however one of them has text in it that can be scrolled, ... it works fine with the mouse wheel, but when you drag the text it both scrolls the text and the panel... is there a simple and correct way to stop propagation.

     

    I don't want to start to try and hack work arounds if possible as the GSAP stuff makes my code nice and clean...

     

    <script>

    #slide5 { position:absolute; left:500px; top:100px; width:450px; height:400px; background-color:#49F7FA; }
     
    #slideScrollText { position:absolute; width:300px; height:330px; left:130px; top:70px; overflow:auto; border:0px solid #ff0000; z-index:1000; color:#666666; font-size:13px; padding-right:20px; }
    </script>

     

    <div id='slide5' class='panel'><div id='slideScrollText'>Imageine lots of text here</div></div>
     
    <script>
         Draggable.create(".panel", {type:"x,y", throwProps:true, bounds:'#siteContainer' });
         Draggable.create("#slideScrollText", {type:"scrollTop"});
    </script>
     
×
×
  • Create New...